Solved

Text in List

Posted on 2011-03-13
4
244 Views
Last Modified: 2012-08-13
hI -
 
How can I  move the text in the ol and ul lists.  In the  ol I need text closer to the number. In the ul I need text not so close to bullets.

http://www.attinc.com/software1.html

CSS
ul {
      font-family: Arial, Verdana, sans-serif;
      font-size: 13px;
      text-align: left;
      list-style-position: inside;
      list-style-type: none;
      margin-left: 0;
      list-style-image: url(images/bdot-sm.gif);
      
}

ol{
      margin: 0px;
      padding-left: 4px;
      list-style-position: inside;      
}

Thank you,
Frieda
0
Comment
Question by:fmv503
  • 2
4 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35122987
try this marker-offset property
http://www.cssportal.com/css-properties/marker-offset.htm

don't think it is possible without css3
0
 
LVL 9

Accepted Solution

by:
sah18 earned 500 total points
ID: 35128238
To increase the spacing between your bullets and the text change your list-style-position to outside, then you can use text-indent to increase the spacing between the two:

ul {
      font-family: Arial, Verdana, sans-serif;
      font-size: 13px;
      text-align: left;
      list-style-position: outside;
      list-style-type: none;
      margin-left: 0;
      list-style-image: url(images/bdot-sm.gif);
      text-indent: 10px;
     
}
0
 
LVL 9

Expert Comment

by:sah18
ID: 35128277
Similarly for your ordered list, change the list-style-position to outside, then specify a negative value for the text-indent:

ex:

ol{
      margin: 0px;
      padding-left: 4px;
      list-style-position: outside;      
      text-indent: -3px;
}
0
 

Author Closing Comment

by:fmv503
ID: 35162677
Thank you!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now