T
Tim W
I have been learning a little about 'responsive' design. It looks like
even an ordinary website might need three stylesheets these days for two
sizes of screen and for printing. That means that if you want to alter
some trivial bit of styling you might have to do it three times in
different places which defeats the object really of having a single
stylesheet for a whole site.
I have seen sites with split stylsheets so you have typography and
colours in style.css and more structural stuff in layout.css . That
looks like a good idea because I could keep the stuff which I don't want
to change for different media in the style.css.
Two questions:
Is it good practice to split your stylesheet up? Pros? cons?
If I am going to be linking my html to maybe four or five stylesheets
and putting in that <!--[if lt IE 9]> crap I dare say I could have a
good stab at getting the syntax right but is a setup like that reliable
across different browsers?
Tim w
even an ordinary website might need three stylesheets these days for two
sizes of screen and for printing. That means that if you want to alter
some trivial bit of styling you might have to do it three times in
different places which defeats the object really of having a single
stylesheet for a whole site.
I have seen sites with split stylsheets so you have typography and
colours in style.css and more structural stuff in layout.css . That
looks like a good idea because I could keep the stuff which I don't want
to change for different media in the style.css.
Two questions:
Is it good practice to split your stylesheet up? Pros? cons?
If I am going to be linking my html to maybe four or five stylesheets
and putting in that <!--[if lt IE 9]> crap I dare say I could have a
good stab at getting the syntax right but is a setup like that reliable
across different browsers?
Tim w