Why not just a small set of alternate style sheets?
'Bushwhacked'
Buffistas Building a Better Board
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
That's the scenario I'm thinking of, Tom. I'm just wondering how much we can keep in common (the base file), and then cascade another file on top of that. I get how you can change a previously defined style with a second sheet, but can you erase it?
It's a shame we didn't get the XSLT thing going. Maybe later.
We don't need to erase. There can be a second stylesheet that acts as the default for all the changeable stuff. If you want to have the ability to "erase" a style, leave it off of the main sheet, put it in the second default sheet, but exclude it from an alternate choosable second sheet.
As good points go, that's very.
And I guess they don't have to be in fixed order, right? I mean, if you want to set a large font basis, you still want the relative font sizes (which I assume would be kept) applied afterwards ...
I should probably just hit up w3c.
By relative size, you mean like if someone uses t font size="-3" in a post? Those will definitely work correctly.
t edit Never mind -- I get your point. As long as you are defining different elements within a style in two different sheets (e.g. font name in one sheet and font size in another), it doesn't matter what order the sheets are in.
No, I meant how we have styles now like:
h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 36px; font-style: normal ; color: #990000}
.biggertext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-weight: normal}
.smallertext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: normal}
.nametext { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-weight: bold}
Will we have to hand calculate the 36 for every variant base size, or can H1 be a relative size to the body text, and we just tweak the body?
I should probably just hit up w3c.
Or the CSS-Discuss wiki. I found it better for finding what I needed at work when I still was doing CSS stuff for that.
Will we have to hand calculate the 36 for every variant base size, or can H1 be a relative size to the body text, and we just tweak the body?
The latter.
Why are the fonts in px?
Well, never mind my edit above then. There should be a way to do what you're saying, shouldn't there? But I don't recall the code.