First of all, it was CSS and HTML adjustments for IE, and I don't want to make a special ie.css to "override the CSS" so that if Chrome / Firefox, then it is one way, and if IE, then another way. So I just want to make a solution that works in all browsers. So how do I make the CSS and HTML have "IE names"?
Second, the way you wrote, it is "catering for browser", and it is not recommended usually. We should just use feature detection. The kind of code hackAroundForIE_WontWorkWithoutIt is kind of ugly and pretty soon the code could be hackAroundForSafari_WontWorkWithoutIt and hackAroundForOpera_WontWorkWithoutIt and it is a mess.
Third, even if she tweaks my code, go ahead convey the idea that the method was to adjust to all browsers including IE. It wouldn't be good to simply delete the comment without doing anything at all. Other programmers can come in and "refactor" it back to the simpler way that has problems for IE without knowing it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
First of all, it was CSS and HTML adjustments for IE, and I don't want to make a special
ie.css
to "override the CSS" so that if Chrome / Firefox, then it is one way, and if IE, then another way. So I just want to make a solution that works in all browsers. So how do I make the CSS and HTML have "IE names"?Second, the way you wrote, it is "catering for browser", and it is not recommended usually. We should just use feature detection. The kind of code
hackAroundForIE_WontWorkWithoutIt
is kind of ugly and pretty soon the code could behackAroundForSafari_WontWorkWithoutIt
andhackAroundForOpera_WontWorkWithoutIt
and it is a mess.Third, even if she tweaks my code, go ahead convey the idea that the method was to adjust to all browsers including IE. It wouldn't be good to simply delete the comment without doing anything at all. Other programmers can come in and "refactor" it back to the simpler way that has problems for IE without knowing it.