Jump to content

white space or filler


atrum

Recommended Posts

Hello all,

 

recently I have been trying to design a menu using HTML and php, the issue I have is I want to separate the different subsections with out making a new page. So basically you could ether click a link to a section on a page or scroll down.

 

My question is regarding the empty space between the sections, What is the best way to add empty space, or white space? At the moment, I am just using like 10x <br> tags, but somehow I think that seems a tad inefficient. Is there a better way to do this?

Link to comment
Share on other sites

Thanks,

 

One more quick question though, is it better to us top or bottom with margin, or does it matter?

 

Better to add margin to the top. I never add margin to the bottom. If you think of a brick house - where each brick is laid on top of another, and connect it to divs, then you will notice that adding margin JUST to the top (and doing it consistently) will render the page fine. Whichever you choose, don't do both. Browser inconsistencies, and just seems unprofessional.

 

Padding is a different story, though.  ;)

Link to comment
Share on other sites

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.