| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Aug 2005
Posts: 135
|
Replaced double br's with this style..
xhtml: Code:
css: Code:
Do you think it is an adequate way to avoid using double br's when inserting some space between two lines of text in the same paragraph? Using line-height increases the space both above and under the text, while I only want to add some space under the first line. |
|
|
|
|
|
#2 (permalink) |
|
now with added beard
Join Date: Mar 2004
Location: Liverpool
Posts: 5,432
|
why not just have 2 paragraphs ?? i suppose what you say is 'acceptable' if there's a reason for it, but wouldn't you be better having seperate paragraphs with their own classes if neccessary ?? fuck signatures
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Aug 2005
Posts: 135
|
Hi Weldo, The thing is, I am using this tweak for an address, aiming at having each phone number (landline, mobile, etc) on its separate line. I thought that these wouldn't really be paragraphs.. it just sounded not very semantic to me. What do you reckon? |
|
|
|
#8 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Haha, it does. I do it the same way as gray. Either that or: <address> <dl> <dt>Address</dt> <dd>Address line 1<br />line2<br />line3</dd> <dt>Phone</dt> <dd>Phone</dd> </dl> </address> Endless styling possibilities even if the HTML is a bit on the heavy side. |
|
|
|
#10 (permalink) | |
|
who the fuck am i?
|
Quote:
I do it the <dl> way fwiw |
|
|
|
|
#14 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Code:
Code:
|
|
![]() |