Can someone explain this to me?

liunx

Guest
If you have page elements not using css positioning, just float and clear left and right, if you set ALL their margins, padding, and borders to 0, shouldn't all the elements butt right against each other? Why am I still seeing space between them? Surely even IE can get that right?Is no one going to tell me if this premise is incorrect or not?Well you're not being very specific. If all you had were empty divs that were measured to sit flush together then maybe yes. But the it can depend on the contents of your elements as much as the elements themselves.line-height will also affect the appearance of "gaps" - set it to 1em.Like mr herer has said it could depend on your content and a number of things maybe you havent set the margin and padding to 0 on the body etc. A link or some code would be of help.AHA! Body margin and padding! That's a good place to begin. Thanks. I didn't post the code because I'm looking more for conceptual information. General functional understanding. Thanks again all.No problem mate glad i could help:)
 
Back
Top