|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Registered User
Join Date: Jan 2001
Location: Reading, England
Posts: 183
|
HTML line spacing
Guys, probably a really simple one but how do I change line spacing in HTML? I can't find a tag that works. is it something I need to add to the < p > tag??
|
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
You could use Padding in CSS
Something like: .classname { padding: 10px 0px 10px 0x; } The first position is the top padding, then right, bottom and left. So in your head section, you would put: <style> .spacer { padding: 10px 0px 10px 0x; } </style> Then use a div like so: <div class="spacer">Some text here</div> |
|
|
|
|
|
#3 |
|
Moderator
Staff
Premium Member
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
|
CSS, eh? If you just want to do it manually, just use the line breaks tag: < br > . It's half of the paragraph tag, and it's admittedly not supposed to be used that way, but it works, doesn't it?
kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman Last edited by kram 2.0; 05-02-2004 at 01:27 PM. |
|
|
|
|
|
#4 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
<br> will not really do much anything about line spacing. It will just break the line. To get non-default line spacing you would have to use CSS.
|
|
|
|
|
|
#5 |
|
Member (5 bit)
Join Date: May 2004
Posts: 19
|
|
|
|
|
|
|
#6 | |
|
Member (9 bit)
|
for line spacing with css: you'd want to use the following:
Quote:
Last edited by juicelooser; 05-05-2004 at 06:50 PM. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|