|
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]
|