Forum Moderators: not2easy

Message Too Old, No Replies

div tags and making their borders look continuous

         

heinz1218

5:41 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



I'm developing a website where I have a horizontal navigation bar within a div tag and then the body of text in a div tag. For some reason i can't get them to come together. I tried using <span> because I thought <div> makes almost new paragraphs.

Thanks guys.

Andrew

[edited by: jatar_k at 6:32 pm (utc) on Aug. 13, 2005]
[edit reason] no personal urls thanks [/edit]

tedster

6:54 pm on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you set the margins to 0, at least margin-bottom for your nav bar and margin-top for the main content?

SuzyUK

5:30 pm on Aug 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



also try adding 1px of padding to the top of the div holding the body text.. it could be a top margin of some element within your body text that is collapsing outside the container div

Suzy

heinz1218

5:30 pm on Aug 15, 2005 (gmt 0)

10+ Year Member



Yeah thanks it was the margin-bottom:0px; that fixed it for my navbar. I thought that the values were by default set to zero?
Thanks guys.

Andrew