When using 2 or more conditional comments to reference browser-
specific stylesheets is it possible to wrap up all the css into one
sheet and split it up from there? So for example I would have 1
stylesheet (not counting the FW-generated sheet) which would be
referenced by a single conditional comment and within that single
sheet there are separate sections for IE5, 6 etc…
I’ve used conditional comments in the for separate stylesheets,
but not within a stylesheet for seperate browsers. If it were
possible, remember the stylesheet is hierarchical – what comes last
trumps what comes first. And Conditional Comments affect IE only.
When using 2 or more conditional comments to reference browser-
specific stylesheets is it possible to wrap up all the css into one
sheet and split it up from there? So for example I would have 1
stylesheet (not counting the FW-generated sheet) which would be
referenced by a single conditional comment and within that single
sheet there are separate sections for IE5, 6 etc…
I looked around the past couple days and couldn’t find anything so I
doubt it’s possible but thought I would ask anyway…you never know.
I was just wondering for the sake of a little convenience; having it
all in one file. Not a big deal.
Thanks,
Todd
On Oct 30, 2007, at 12:03 PM, Ernie Simpson wrote:
I’ve used conditional comments in the for separate stylesheets,
but not within a stylesheet for seperate browsers. If it were
possible, remember the stylesheet is hierarchical – what comes last
trumps what comes first. And Conditional Comments affect IE only.
When using 2 or more conditional comments to reference browser-
specific stylesheets is it possible to wrap up all the css into one
sheet and split it up from there? So for example I would have 1
stylesheet (not counting the FW-generated sheet) which would be
referenced by a single conditional comment and within that single
sheet there are separate sections for IE5, 6 etc…
Well the precedent is there – there are browser-specific hacks all
over that are used because of how different browsers read them. All
browsers ignore comments in the stylesheet alike, so it’s not
unreasonable to see them responding alike to other bits of code. It
would be a worthy experiment, and a hoot at that.
But for home-made stylesheets, of course. Freeway is still not
user-interactive when it comes to the stylesheet order. Many a time I
have seen my kanoodling undone because I can’t keep the cascade order
intact. sigh
On 10/30/07, Todd wrote:
I looked around the past couple days and couldn’t find anything so I
doubt it’s possible but thought I would ask anyway…you never know.
I was just wondering for the sake of a little convenience; having it
all in one file. Not a big deal.
It means working backward – setting your normal styles for IE, then
adding the child-selectored code for everyone else, so I can’t
recommend it as a good way to work. Plus you really need to make sure
Freeway puts the child-selector code after the regular code or else it
won’t take. In this simple test it did so automatically.
On 10/30/07, Todd wrote:
Well, if the conditional thing turns out to be doable that would be cool and
if not, no loss.