Reply LinkBack Thread Tools Search this Thread
Old 06-07-2006, 05:32   #1 (permalink)
mudz
Senior Member
 
Join Date: Aug 2005
Posts: 135
Replaced double br's with this style..

xhtml:
Code:
<p>I am so beautiful I'd start to cry.<span class="double">I mean it, man.</span> Oh, and by the way, there's a three-headed monkey behind you.</p> }

css:
Code:
.double { display: block; margin-bottom: 14px; }

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.
  Reply With Quote
Old 06-07-2006, 05:44   #2 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
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
  Reply With Quote
Old 06-07-2006, 06:50   #3 (permalink)
mudz
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?
  Reply With Quote
Old 06-07-2006, 06:56   #4 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,713
<address>
street<br />
town<br />
county<br />
postcode<br /><br />
telephone<br />
fax<br />
email
</address>

is what i use
  Reply With Quote
Old 06-07-2006, 07:05   #5 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,736
aye, and style the address tag as its italic by default.
  Reply With Quote
Old 06-07-2006, 07:42   #6 (permalink)
mudz
Senior Member
 
Join Date: Aug 2005
Posts: 135
Sweet..
  Reply With Quote
Old 06-07-2006, 09:45   #7 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,432
the address tag ??
shit - i never knew that existed !!
__________________
fuck signatures
  Reply With Quote
Old 06-07-2006, 10:28   #8 (permalink)
pgo
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.
  Reply With Quote
Old 06-07-2006, 10:37   #9 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,432
i generally do what gray does - just without the <address> bit ....

what else exists that i don't know about ??
father christmas ?? dinosaurs ?? betamax ??
__________________
fuck signatures
  Reply With Quote
Old 06-07-2006, 10:53   #10 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,508
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by weldo
i generally do what gray does - just without the <address> bit ....

what else exists that i don't know about ??
father christmas ?? dinosaurs ?? betamax ??
take heart... I didnt know of its existence either.

I do it the <dl> way fwiw
  Reply With Quote
Old 06-07-2006, 11:27   #11 (permalink)
daandj
Registered User
 
daandj's Avatar
 
Join Date: Jun 2006
Location: Belgium
Posts: 16
i didn't knew it either, tell me what's the advantage of using the aadress tag?
  Reply With Quote
Old 06-07-2006, 11:40   #12 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
It's semantically correct.
  Reply With Quote
Old 06-07-2006, 12:47   #13 (permalink)
mudz
Senior Member
 
Join Date: Aug 2005
Posts: 135
respect
  Reply With Quote
Old 06-07-2006, 14:07   #14 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Code:
<p>I am so beautiful I'd start to cry.<span class="double">I mean it, man.</span> Oh, and by the way, there's a three-headed monkey behind you.</p>
...should be...
Code:
<p>I am so beautiful I'd start to cry.</p> <p>I mean it, man.</p> <p>Oh, and by the way, there's a three-headed monkey behind you.</p>
Definitely.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8