You are here: Re: set a class to another class in a CSS stylesheet « HTML « IT news, forums, messages
Re: set a class to another class in a CSS stylesheet

Posted by mbstevens on 03/23/07 20:53

Ciaran wrote:
> Hi guys thanks for the replies on this. There's a complicated reason
> behind it but what I was trying to do was define a new class that has
> all the same properties of some old class plus a few more. But I
> needed to do it without changing the html - just CSS. I've kind of
> given up on the idea now but it would still be interesting to know if
> it's possible to use classes like that.
>
Sure. Just generate your (X)HTML and CSS server side and make any
changes you want before sending the page.

But there are also all sorts of precedence and cascade rules that can be
applied, and your question leaves me unsure which kind of thing you are
imagining. Can you be more specific?

In the meantime, Google "CSS precedence" and "CSS cascade".

 

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

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