Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
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
 
 
Register now for full access!
Old 04-06-2007, 04:03 PM Re: Styling news and events...
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
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>
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-06-2007, 10:15 PM Re: Styling news and events...
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
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, 02:47 PM Re: Styling news and events...
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
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
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 04-07-2007, 03:17 PM Re: Styling news and events...
WebSavvy's Avatar
Extreme Talker

Posts: 166
Name: Deb
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
WebSavvy is offline
Reply With Quote
View Public Profile Visit WebSavvy's homepage!
 
Old 04-07-2007, 03:42 PM Re: Styling news and events...
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.32718 seconds with 12 queries