You are here: Re: Setting the distance between numbers and text in an ordered list. « HTML « IT news, forums, messages
Re: Setting the distance between numbers and text in an ordered list.

Posted by dorayme on 07/30/05 05:30

> From: richard_quick_uk@hotmail.com
>
> The CSS is:
>
> ol { padding: 0; margin: 5px 0 10px 0; margin-left: 23px; color: #cc0000; }
>
> ol li { list-style-position: outside; margin: 0; }
>
> And the html is:
>
> <ol> <li><a href="#">The top tips text will go here</a></li> <li><a
> href="#">The top tips text will go here</a></li> <li><a href="#">The top tips
> text will go here</a></li> </ol>
>

I'm always forgetting how to do things. Here is one way, perhaps not the
best, but it works as far as I can see for your list that consists of
links:

In the link css instructions put padding-left: 10px; or whatever px you
want. If you don't want this generally for links then you will need to
make the links for this a special (like a class).

A:link { color: #000099; background: #fff; padding-left: 10px;}

And, of course for hover and visited and active the same or different...

dorayme

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация