Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,291 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,410 people online right now. Registration is fast and FREE... Join Now!




css with ie 6

 
Reply to this topicStart new topic

css with ie 6

didgy58
28 Aug, 2008 - 08:33 AM
Post #1

D.I.C Head
**

Joined: 23 Oct, 2007
Posts: 170



Thanked: 1 times
My Contributions
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
User is offlineProfile CardPM
+Quote Post

girasquid
RE: Css With Ie 6
28 Aug, 2008 - 12:56 PM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,266



Thanked: 14 times
Dream Kudos: 650
My Contributions
You should look into two things:

* Conditional comments (you create a separate CSS file for only IE-specific tweaks, and then link it only for IE), and
* http://iedeathmarch.org/
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 05:46AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month