Hello,
I have text like this:
TEXT A
TEXT B
TEXT B
TEXT B
How do I make Text A indented?
And how do I make Text B indented even more?
Thanks.
| SitePoint Sponsor |




Hello,
I have text like this:
TEXT A
TEXT B
TEXT B
TEXT B
How do I make Text A indented?
And how do I make Text B indented even more?
Thanks.
You might want to try a definition list or you could do a unordered list with classes applied to specific list items... or you could possibly used advanced selectors.Originally Posted by johnny190
Depending on content, I would go with a DL.
Code:/* Real real quick example: */ dt { padding-left: 10px; } dd { padding-left: 20px; }




But how would I call that? Text A and Text B are both in a table cell, already using a class.Originally Posted by mhulse
So would I just go <span class="dt">Text A</span>
and <span class="dd">Text B<br>Text B</span> ?


You would use a definition list and put it in the table cell.
Here's an example of a definition list:
HTML Code:<dl> <dt><strong>BOHICA</strong></dt> <dd> <em>Slang</em> — Military acronym meaning "Bend Over, Here it Comes Again!" Commonly used by infantrymen to warn friendly forces of incoming enemy fire. Also the name of a bar in Chicago, Illinois. </dd> </dl>
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Lol! Nice one. Hehe, never heard that one b4. But, I guess not so nice for the guys/gals that are actually having to say BOHICA.BOHICA![]()
Bookmarks