Welcome, Guest. Please login or register.

Login with username, password and session length
Pages: [1]   Go Down
Print
Topic: Why is there a margin between div's even though margin is set to zero?  (Read 862 times)
« on: May 23, 2009, 11:36:20 PM »
buddhi225 Offline
Newbie

View Profile
*
Posts: 3



I am trying to do a liquid design.

So I started out to put all divs on top of each other before I would decide where to float what.

The weird thing. Between the first three divs there is a space of about 20px.

Even if I define margin to be 0px in the CSS, the gap doesn't go away.
Logged

 
« Reply #1 on: September 07, 2009, 11:18:03 PM »
travis_perine Offline
Newbie

View Profile
*
Posts: 3



You can pass the CSS validator with flying colors, and still have something that will give you unexpected results. If you can post your HTML and CSS, it would help us to help you find the problem. It's hard to just guess. It could be margin or padding on other elements, it could be the way you have thing laid out, or a number of other things that wouldn't cause a validation error, but could give you unexpected results.
Logged
 
Pages: [1]   Go Up
Print
Jump to: