Jump to content

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


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/

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.