css - Including styles within another style -
so have been pondering , don't think exists. understand logic counter stylesheets trying accommodate, let's give go:
take next example:
// illustration "template style" .blue_bold { color: blue; font-weight: bold; /* other styles can go here */ }
so let's want add together footer in html go:
<div class="blue_bold" id="footer"> // content goes here </div>
this perfect, if want add together element number of elements. want add together navigation well, have add together class each element:
<div class="blue_bold" id="navigation"> // content </div> .... <div class="blue_bold" id="footer"> // content </div>
my question is, appose declaring via class or style, there no way "attach" style style within stylesheet? (as example:)
#navigation, #footer { attach_style(".blue_bold"); }
that way can minimize code creating "base styles" , attach styles individual styles within stylesheet? 1 time again question, not wish impliment, figure given above "nice have" people working brand guideline documents , want attach specific styles individual styles without going html it.
any ideas? exists?
can't see benefits. you're asking not standard css. can define elements class blue_bold
.blue_bold { color: blue; font-weight: bold; /* other styles can go here */ }
for block
<div class="blue_bold" id="navigation"></div>
you can add together declaration this:
#navigation, #footer { background: black; color: red; }
everything .blue_bold used unless overwritten. what's wrong it?
css
No comments:
Post a Comment