Log in

View Full Version : Basic Help With <p>



hakopa
07-03-2006, 02:54 AM
Hey,
i need some help with the space codes-

i want something like this:

Thanks,

Hakopa
test.net

With html it makes it look like this:
Thanks,

Hakopa

test.net

I want to get rid of the space in between- <P>?
How do i do this?
Thanks

djr33
07-03-2006, 07:03 AM
The <p> tag does that. There are ways of using complex styling that will change margins, but it's not worth it.

Use the <br> tag instead.

Note that it doesn't need a close tag. (Never use </br>)... it is simply a line break wherever you put it.

Twey
07-03-2006, 01:49 PM
Don't over-use the <br> tag. In this case it's semantically acceptable to use it, but if you're starting a new paragraph, use <p> and style it with margin-bottom:0;.