Jump to content

help with positioning and empty space below elements on this home page


twebman84

Recommended Posts

The skte is http://gtaparkinsonsgroup.org.s60787.gridserver.com/

 

Notice that there is a lot of blank space under the three call-to-action boxes on the page. Those boxes are positioned relative. Then there ar eno elements under that, just closing the CONTAINER div and closing BODY and HTML.

 

Why the empty space?

It is because in the box model, your third div is under both of the other divs. So your layout looks like:

[1]

[2]

[3]

 

Then using relative positioning you "move it" over and up, but its space in the box model remains.

 

Why not use floats instead? http://jsfiddle.net/y9gzA/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.