You are here: Re: CSS question: Changing styled <LI> buttons « HTML « IT news, forums, messages
Re: CSS question: Changing styled <LI> buttons

Posted by David Dorward on 12/29/05 03:53

Ed Jay wrote:

>>> How can I change the background color of individual buttons? IOW, if I
>>> have seven buttons , but I want two of them to be a different color than
>>> the rest.

>>Classes or ids depending on the reason.

> Kindly elaborate.

Give the list items that you wish to mark apart from the others a class.
Write selectors that are, aside from including that class, the same as the
selectors that already match.
In the style for those selectors, override the background-color.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

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

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