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
https://forums.phpfreaks.com/topic/115584-white-space-or-filler/
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.  ;)

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.