You are here: Re: subclassed css elements « HTML « IT news, forums, messages
Re: subclassed css elements

Posted by danrumney on 08/21/06 16:39

dfloss wrote:
> Is it possible to subclass a css element, then modify it?
>
> For example, given this definition:
>
> TABLE.bordered {border-left: 1px solid; border-top: 1px solid;
> border-bottom: 1px solid; border-right: 1px solid; border-color: #000}
>
> ...can you create a style based on it using shorthand (which in this
> case would have no top border)?
>
> .bordered2.bordered {border-top: none}

Yes

See:

http://www.w3.org/TR/CSS21/selector.html#class-html

Dan Rumney

 

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

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