OtagoHarbour Posted June 24, 2012 Share Posted June 24, 2012 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 More sharing options...
birbal Posted June 24, 2012 Share Posted June 24, 2012 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 More sharing options...
niche Posted June 24, 2012 Share Posted June 24, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now