Conditional Comments

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…

Todd


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

More on conditional comments:
http://www.quirksmode.org/css/condcom.html

On 10/30/07, Todd wrote:

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…


Ernie Simpson – Freeway 4 Pro User – http://www.thebigerns.com/freeway/


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

More on conditional comments:
CSS - Conditional comments

On 10/30/07, Todd wrote:

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…


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.


Ernie Simpson – Freeway 4 Pro User – http://www.thebigerns.com/freeway/


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Oct 30, 2007, at 12:22 PM, Ernie Simpson wrote:

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

So it’s not just me. ; )

Another one of those “this should be simple but FW has other things in mind” moments.

Well, if the conditional thing turns out to be doable that would be cool and if not, no loss.

Todd

Okay, I’ve tested this – conditional comments in the stylesheet don’t
work. But, I read this:

Since IE6 cannot read the child selector (IE7 can), I was able to set
up a simple test – completely in Freeway 4 Pro – and Net Renderer
bears me out.
http://www.thebigerns.com/freeway/workbench/conditional-css/

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.


Ernie Simpson – Freeway 4 Pro User – http://www.thebigerns.com/freeway/


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options