4 replies [Last post]
roscoe
roscoe's picture
Offline
Enthusiast
Last seen: 12 years 19 weeks ago
Joined: 2006-03-09
Posts: 138
Points: 0

html: http://roscoecreations.com/exitpro/
css: http://roscoecreations.com/exitpro/css/style.css

Well I thought I had this all figured out but it turns out I haven't fixed the hr right after the navigation div at the top of my page. There should be 1px of space then the HR then 1px of space. Please view in Firefox to see how its supposed to look. IE6 keeps creating more white space then what is needed and I can't seem to get around it. I would really appreciate some help with this one, its been plaguing me all week. Thanks.

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 2 years 3 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

Have you set the margin and

Have you set the margin and padding of the hr to 0?

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 8 years 10 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

IE is a pain with HRs. You

IE is a pain with HRs. You probably need to set the font-size and the line-height too. In the end many uses(*) of HRs are better suited to using a border-bottom or a border-top on one of the adjacent elements and removing the HR altogether.

(*) - Mostly the only HRs that remain in my pages are ones that are added to improve the unstyled appearance of a page. The HR is then styled to either display:none or visibility:hidden to keep it off the styled version. YMMV.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

TIP: In IE set hr to

TIP:

In IE set hr to display:block for greater control

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

roscoe
roscoe's picture
Offline
Enthusiast
Last seen: 12 years 19 weeks ago
Joined: 2006-03-09
Posts: 138
Points: 0

Thanks for your help. I

Thanks for your help. I ended up using a background that made it look like I had the border. Those other suggestions did seem to help me play with HR more but wasn't giving me the 1px tp and bottom margin like a wanted. Thanks again.