DIV Spacing issue

  • Joe426
  • Beginner
  • Beginner
  • User avatar
  • Posts: 59

Post 3+ Months Ago

I have two divs, one for my header, and one for the navigation bar beneath my header. there is a 13px gap between the two in FF but not in IE. See here - (the distance between the shaded base and the blue bar). Ideas on how to fix this?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

It looks like if you add this to your #headerNav ul it should do the trick:
Code: [ Select ]
margin:0px;
  • Joe426
  • Beginner
  • Beginner
  • User avatar
  • Posts: 59

Post 3+ Months Ago

Nope, didn't work.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

For header? Why not use a <h1>...</h1> tag? Those tags are created to define headers AND they are good for your SEO!!!
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

I think this should work ... I can't seem to get the Web-Developer toolbar to work properly in FF3 ... dammit
line 46:
Code: [ Select ]
#headerNav ul {padding:0px;margin:0px;}
  • SteeleR
  • Newbie
  • Newbie
  • User avatar
  • Posts: 7

Post 3+ Months Ago

background-repeat: repeat-x;

for the element with the background. Haven't looked in the code but guess the UL. IE6 needs it otherwise it expands and repeats the background..
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

righteous_trespasser wrote:
I think this should work ... I can't seem to get the Web-Developer toolbar to work properly in FF3 ... dammit
line 46:
Code: [ Select ]
#headerNav ul {padding:0px;margin:0px;}

Yeah, that worked for me too in FireBug anyway...

Joe426- make sure you add it to "#headerNav ul". It looks like you may have added it to "#headerNav" instead.
  • Joe426
  • Beginner
  • Beginner
  • User avatar
  • Posts: 59

Post 3+ Months Ago

Sweet, it worked. Thanks.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 65 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.