Reply
Styling news and events...
Old 04-06-2007, 02:44 PM Styling news and events...
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
What is the best way to markup and style news and events listings? I am currently using a definition list for the layout. I'm not sure if there is a better way or not. Here is how I have my events listed:
Code:
<dl>
    <dt>Relay For Life<br />
    <span class="date">June 8 - 9</span></dt>
    <dd>Relay For LifeŽ is a fun-filled overnight event designed...</dd>
</dl>
Is a definition list OK to use. Or is there a better way?
Tom_M is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-06-2007, 03:03 PM Re: Styling news and events...
willcode4beer's Avatar
Webmaster Talker

Posts: 695
Name: Paul Davis
Location: San Francisco
A definition list is fine but, ditch the span and break tags. Something more along the lines of:
HTML Code:
<dl>
    <dt>Relay For Life</dt>
    <dd class="date">June 8 - 9</dd>
    <dd>Relay For LifeŽ is a fun-filled overnight event designed...</dd>
</dl>
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-06-2007, 09:15 PM Re: Styling news and events...
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
I was unaware that a definition list could have more than one definition per term?
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 04-07-2007, 01:47 PM Re: Styling news and events...
willcode4beer's Avatar
Webmaster Talker

Posts: 695
Name: Paul Davis
Location: San Francisco
Can have many of each
http://www.w3.org/TR/html401/struct/lists.html

Here's one of the coolest uses for a definition list I've seen:
http://alistapart.com/articles/cssmaps
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-07-2007, 02:17 PM Re: Styling news and events...
WebSavvy's Avatar
Extreme Talker

Posts: 166
Name: Deb
Yes, definition lists can have more than one definition description per list. You can even nest them. My entire directory is coded using definition lists for the layout.

The design and layout is about 2 months old. I'm currently working on another new layout and design, but coded using <div> instead.

The nice thing about definition lists is the fact they're almost like tables but better.
__________________
WebSavvy Directory | IHY
WebSavvy is offline
Reply With Quote
View Public Profile Visit WebSavvy's homepage!
 
Old 04-07-2007, 02:42 PM Re: Styling news and events...
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
Quote:
Originally Posted by willcode4beer View Post
Here's one of the coolest uses for a definition list I've seen:
http://alistapart.com/articles/cssmaps
Thanks for the tips. And yes that is a pretty cool use for a DL. I think I might even try one of those image maps. Very nice!

I am learning lists are more and more versatile than I thought.
Tom_M is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Styling news and events...
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13173 seconds with 12 queries