Jump to content

Vertical Space Of Specified Width


OtagoHarbour

Recommended Posts

I would like to use PHP to put a vertical space on a web page.

echo "<br \><br \><br \><br \>";

works fine on FireFox but probably breaks several rules in relation to strict xhtml and may not work as well on other browsers. Is there are more standard/correct/robust way of doing this? Thanks,Peter.

Link to comment
Share on other sites

as per xhtml rule it is not violating anything. but for acheiving vertical spaces it is best and preferable to use box modeling with margin and padding. you will find about box modeling to w3s css tutorial.

Link to comment
Share on other sites

Generally, you should use a div class and you won't violate any rules. Otherwise, please post a bit more code for a possible better answer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...