Question:
how do you enter in hmtl?
?
2010-01-12 14:38:27 UTC
im trying to get things to go on a new line on my web page but if i do a new paragraph they still end up on the same line as my menu i put in. how do i enter or make stuff on a new line? im trying to do images and texts on a new line by the way. k thanks.
Five answers:
Alex McKee
2010-01-12 15:41:18 UTC
Whitespace in HTML is collapsed. You can change this behaviour in a few different ways but ultimately there is a reason why whitespace is treated the way it is.



Firstly your text should be in a paragraph element (

) or another appropriate blocklevel element. The amount of space between these elements can be modified using CSS margins.



The menu you speak of could be in a

element and again you can use CSS margins to put some space between it and the content that comes next in order.



Your image can be styled using CSS too.



I know this doesn't give you a particularly quick fix but if you learn how to use HTML + CSS properly you will reap the benefits. Getting started is very easy.
2010-01-12 15:29:28 UTC
Space: & nbsp; (remove the space between & and nbsp;--yahoo filtered it)



Line break:




New paragraph:

Michael from UK
2010-01-12 14:46:04 UTC

= new paragraph


= line break



Have a look at the w3school html tutorials.

Matrix1010101
2010-01-12 14:52:25 UTC



or


Iby K
2010-01-12 14:43:46 UTC
try

or



This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...