Forum Moderators: not2easy
////////////////////////////////////////////
* Books
__We offer books in low prices....
* CDs
__We offer cds in low prices....
* DVDs
__We offer the same as above..........
////////////////////////////////////////////
where the underscore is the text indent.
How can i manage it without using tables, just with list items? I would like to have some styling in the list item (other text color for "books" other for the description, smaller line height for the description paragraph etc).
Any help please?
You can then use css to style your list items accordingly.
Doesn't
<dl>
<dt>Books</dt>
<dd>We offer books in low prices</dd>
<dt>CDs</dt>
<dd>We offer cds in low prices</dd>
<dt>DVDs</dt>
<dd>We offer the same as above</dd>
</dl>
<ul>
<li>Books<span>We offer books in low prices</span></li>
<li>CDs<span>We offer cds in low prices</span></li>
<li>DVDs<span>We offer the same as above</span></li>
</ul>ul li span{display:block;}
Add classes and/or ids where appropriate. :)
[edited by: Dave75 at 6:40 am (utc) on May 28, 2008]
Lets say you read it without CSS. What would you be reading?
BooksWe offer books in low prices
(sic)
There's something wrong with that -- whereas definition lists' entire purpose is to define items. There is a list of items, and there is a list of definitions attached to those items.
You know, considering the data set is key-value pairs, it's actually MORE indicative and understandable to put it in a table than use an unordered list with spans.
[edited by: Setek at 6:57 am (utc) on May 28, 2008]