thin white line

This is a discussion on "thin white line" within the Web Page Design section. This forum, and the thread "thin white line are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 12th, 2007, 22:49
Junior Member
Join Date: Nov 2006
Location: israel
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Question thin white line

can anyone tell me why i get a thin white line in IE6/7 below the header here?
Thanks!
http://www.kehillot-tehilla.com/test.html
Reply With Quote

  #2 (permalink)  
Old Jun 12th, 2007, 22:55
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

I'm guessing it's a border/margin issue. Try setting the borders and margins to zero and see what happens.

You could use:

Code: Select all
* { margin:0; padding: 0;}
This will set all margins and padding to zero though. So you may just be better off setting that particular elements margins/paddings to zero.

Let us know what happens, it could be something else.

Pete.
Reply With Quote
  #3 (permalink)  
Old Jun 12th, 2007, 22:56
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

Oh, by the way the reason for this is that different browsers set different default margins and paddings so if you don't set your own you will often get different results with different browsers.

Pete.
Reply With Quote
  #4 (permalink)  
Old Jun 12th, 2007, 23:06
Junior Member
Join Date: Nov 2006
Location: israel
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

thanks pete.
looks like its something else, the * { margin:0; padding: 0;} didnt have any effect on the line
Reply With Quote
  #5 (permalink)  
Old Jun 12th, 2007, 23:21
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

Not sure why there is a space between the header and the div called #main.

I would guess it has something to do with the #main div. or the #content div because both of those come directly under the header.

I would suggest that you switch to a full html/css based two column layout.
That would make things so much easier for you. You need to take out all the styling out of the html and put that into css. (widths, heights, etc)
You need to separate the Header div and the content div in the css.

valign doesn't really work in css. So that might be part of your problem. But I can't see anything obvious. Maybe someone else will.

This would work for you http://bonrouge.com/2c-hf-fluid.php
as well as this http://bonrouge.com/2c-hf-content1st.php
Reply With Quote
  #6 (permalink)  
Old Jun 12th, 2007, 23:22
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

Bummer.

I'll have look at it and get back to you. It could be the borders or cell padding if your using tables. Try setting them to 0 as well.

Pete.
Reply With Quote
  #7 (permalink)  
Old Jun 12th, 2007, 23:32
Junior Member
Join Date: Nov 2006
Location: israel
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

thanks guys.
the valign i put in to try fix it, but it didnt work
will carry on playing...
cheers
Reply With Quote
  #8 (permalink)  
Old Jun 12th, 2007, 23:33
Junior Member
Join Date: Nov 2006
Location: israel
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

cool! i just found what the problem was - in my header i had:
Code: Select all
<div id="header"><a href="../index.html"><img src="../images/ui/header.jpg" alt="Kehillot Tehilla" width="760" height="159" border="0" /></a> </div>
- not the space just before closing the div. i took that out and it fixed it.

thanks guys!
Reply With Quote
  #9 (permalink)  
Old Jun 12th, 2007, 23:35
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

Fancy that. I'd never have spotted it.

Glad you're sorted now though.

Pete.
Reply With Quote
  #10 (permalink)  
Old Jun 12th, 2007, 23:40
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

:bounce8:
Applause, standing - o... that's great!
Reply With Quote
  #11 (permalink)  
Old Jun 13th, 2007, 00:02
Junior Member
Join Date: Nov 2006
Location: israel
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Re: thin white line

thanks again for the very speedy replies gang
Reply With Quote
  #12 (permalink)  
Old Jun 13th, 2007, 19:32
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,604
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: thin white line

IE will actually render white space in your code. Weird.
__________________
I've got <style> and .class
Reply With Quote
Reply

Tags
css spacing

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
big white gap in form monkeymafia Web Page Design 3 Nov 4th, 2007 20:19
White List JacobHaug Webforumz Cafe 15 Jul 18th, 2007 07:24
Black on white or white on black? joshcxa Webforumz Cafe 14 May 11th, 2007 14:31
fade to white christopher Graphics and 3D 2 Jun 1st, 2006 12:02
remove white line from the frames swetha Web Page Design 0 Jan 18th, 2006 10:53


All times are GMT. The time now is 03:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43