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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
caption underneath "active" <li>
Old 09-20-2009, 01:35 PM caption underneath "active" <li>
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
I have a vertical <ul> that is used for sub-navigation.
Each different .htm page has an "active" class attributed to respective <li>.
How can I, semantically, add a caption underneath an active <li>?

I'd like to have the <li> have the caption underneath the bold <li> text; like so:


List Option
caption describing option
underneath bolded text
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


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

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
 
Register now for full access!
Old 09-20-2009, 01:46 PM Re: caption underneath "active" <li>
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
use a definition list instead

http://www.candsdesign.co.uk/article...g/make-a-list/
http://www.candsdesign.co.uk/reference/html/tags/lists/

and I get a couple of links in
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-20-2009, 02:09 PM Re: caption underneath "active" <li>
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
At first, I planned on using a definition list. But here's the thing...
I only want the "definition", or list description, to be displayed on one particular list element per page.
Is it kosher to have a <dl> with a list of <dt> terms without their respective <dd> definitions, with the exception of one?

So it will be:

<dl>
<dt>option 1</dt>
<dt>option 2</dt>
<dt>option 3</dt>
<dd>here is a little something about option</dd>
<dt>option 4</dt>
</dl>

Is it uncodely to have a <dt> tag listed without an accompanying <dd> description?

By the way, thanks for the link on how to properly code html lists. For some reason I thought you didn't close the <dt> tag until after the open/close of the <dd>.
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


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

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Old 09-20-2009, 02:38 PM Re: caption underneath "active" <li>
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Sure, there doesn't have to be a description following every term.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-20-2009, 02:52 PM Re: caption underneath "active" <li>
MattCoops's Avatar
Ultra Talker

Posts: 423
Name: Matt Cupan
Location: Charlotte, NC
Trades: 0
I ran it through validator.w3.org direct input within a strict html doctype and it validated. So if W3C approves of it, it must be a-okay.
__________________
Matt - Tweeting
Please login or register to view this content. Registration is FREE


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

read my
Please login or register to view this content. Registration is FREE
MattCoops is offline
Reply With Quote
View Public Profile Visit MattCoops's homepage!
 
Reply     « Reply to caption underneath "active" <li>
 

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