I’d like to insert a blank line in my HTML code but I’d like to change the size of this blank line to see if it fits with the rest of the page.
Does someone know how to do this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The nicest way would be to put a bottom margin on the element you want some spacing after. The other solutions posted are not semantic and your markup will end up to be a giant mess of spacer elements without content.
CSS is the right way for presentation.
For example if you have two paragraphs, and want some spacing after the first one:
This is just an illustration, your best bet would be using
id/classand a separate stylesheet.The only other semantic solution I can think of is a
<HR>element, but it is a quite problematic one if you want to style it cross-browser (see details on the link).