You are here: Re: Nesting (?) CSS « HTML « IT news, forums, messages
Re: Nesting (?) CSS

Posted by Neredbojias on 11/02/05 23:02

With neither quill nor qualm, rsimpson505@gmail.com quothed:

> Probably I have missed something, but how do you use one style
> definition inside another?
> For example:
> I want to define two styles of <td> tags, td1 td2, which share some
> properties from style tdg and have some individual properties:
>
> td.tdg {
> width: 30;
> height: 50;
> border-left: solid 1px gray;
> border-top: solid 1px gray
> }
> td.td1 {
> <!-- want to use td.tdg definition here -->
> border-right: solid 1px gray;
> border-bottom: solid 1px gray
> }
> td.td2 {
> <!-- want to use td.tdg definition here -->
> border-right: solid 1px gray;
> border-bottom: solid 2px navy
> }
>
> How do I do this?

I think you can just use class="tdg td1" ("tdg td2").

Try it. If not -

Change "td.td1" to "td.tdg td.td1,td.tdg td.td2". Then: class="tdg
td1" (or "tdg td2") in the tds.

--
Neredbojias
Contrary to popular belief, it is believable.

 

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

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