Jump to content

Vertical Space Of Specified Width

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 post
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 post
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 post
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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