hi peeps, just a quick question of ethics i guess, throughout my short period of time as a web developer since graduating, ive always tried to develop a site that is usuable across a whole range of browsers, for me its easier to develop for ie7 firefox 2 & 3 safari etc, i always seem to spend most of my time, after finishing reworking this to get it to look right in ie 6, sometimes remaking seperate stylesheets with styles specific for ie6 and sometimes this takes time, now ive just found this little beauty while trawling through the net.
CODE
body {
background-color:red;
_background-color:red;
}
as you can see that second style with the underscore will be picked up by only ie6 and then applied (well according to what i read, so dont go off on one if im wrong).
[indent]Now with this in mind today i have found myself working on a site, instead of making seperate tweeks in a ie6 file, i have put the tweek inside the same css file with the underscore, now this has an advantage from what i can see, is that all the css is now in one file, and no need to go looking about to pick out the changes, so less stress when trying to pin point mistakes,
now what my dilema is, is this, SHOULD I BE DOING THIS, ive read a million different posts about if your good at CSS tweeks wont have to be made, and only one style sheet would ever be needed that works across all browsers (so i kinda feel like im cheating a little with this underscore way), but all the sites i have built in some way needed a slight tweeking for ie6 to render correctly, and sometimes this only might be one or 2 rules in a seperate stylesheet, but apart from that everything renders fine across the bored in every other browser,
so am i wrong in feeling bad about starting to take this approach and is it frowned upon be fellow developers???
would be good to know your thoughts on this
thanks
Dan