![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there no way to refer to an existing rule to set a value for a new rule short of generating a style sheet server side? ... |
|
Without this type of mechanism you end up duplicating values. I usually try to avoid duplicating data because it creates maintenance overhead. |
#3
| |||
| |||
|
|
Is there no way to refer to an existing rule to set a value for a new rule short of generating a style sheet server side? For example: div.a {color: blue;} div.b {color: div.a.color} Without this type of mechanism you end up duplicating values. I usually try to avoid duplicating data because it creates maintenance overhead. What's the deal? This seems so obvious I don't understand why it can't be done. Or can it? Or how is this handled? |
#4
| |||
| |||
|
|
in post <news:a2652193.0312091602.44473342 (AT) posting (DOT) google.com David Beardsley said: Is there no way to refer to an existing rule to set a value for a new rule short of generating a style sheet server side? For example: div.a {color: blue;} div.b {color: div.a.color} .blah{..common properties..} .color1{color:red;} .color2{color:blue;} class="blah color1" class="blah color2" |
#5
| |||
| |||
|
|
"brucie" <brucie01 (AT) bruciesusenetshit (DOT) info> wrote in message news:br5pd0$26hjtl$1 (AT) ID-117621 (DOT) news.uni-berlin.de... in post <news:a2652193.0312091602.44473342 (AT) posting (DOT) google.com ..... div class="cardetails make"> Toyota</div div class="cardetails model">Camry</div |
#6
| |||
| |||
|
|
"brucie" <brucie01 (AT) bruciesusenetshit (DOT) info> wrote in message news:br5pd0$26hjtl$1 (AT) ID-117621 (DOT) news.uni-berlin.de... in post <news:a2652193.0312091602.44473342 (AT) posting (DOT) google.com |
#7
| |||
| |||
|
|
"Peter Foti" <peterf (AT) systolicnetworks (DOT) com> wrote in message news:vteljliu16dica (AT) corp (DOT) supernews.com... "brucie" <brucie01 (AT) bruciesusenetshit (DOT) info> wrote in message news:br5pd0$26hjtl$1 (AT) ID-117621 (DOT) news.uni-berlin.de... in post <news:a2652193.0312091602.44473342 (AT) posting (DOT) google.com .... div class="cardetails make"> Toyota</div div class="cardetails model">Camry</div I was testing some pages in IE6, Moz1.3 and NN4.78 the other day when I noticed that NN dropped every style where I had specified two classes. Your other encapsulation method, vis. div class="cardetails" div class="make">Toyota</div div class="model">Camry</div /div Is an interesting possibility.. Is there any way to apply it to table cells, or would you have to wrap the cell contents in <span>/<div>s or similar? |
#8
| |||
| |||
|
|
You could certainly apply this to table cells as well (though I'm not sure I understand exactly what you mean). However, I find it generally more reliable to apply style to the *contents* of table cells, vs. the actual cells themselves. For example, you could do: table class="cardetails" tr .... Is that what you meant? |
![]() |
| Thread Tools | |
| Display Modes | |
| |