Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have to mantain a 1000-line CSS for a social network. I use this specific hack always followed by /* IE6* / , and only on cases of rendering discrepances (for example: checkboxes in IE6 have additional padding). I always try to solve rendering differences by altering the markup, not hacking my way in CSS, but there are a few cases where this is necessary.

This setup brings me these benefits:

* I can see at a glance where a particular attribute is tailored to IE6.

* When I have a problem with IE6, I just Inspect the suspicious element with Firebug on Firefox and look at the stylesheet. No need to open a different file and find the selector there.

* When this awful program dies, I'll just scan the file and delete all occurences of /* IE6* / (not many).

(Sorry about my broken English, it's not my first language) EDIT: Formatting -- my first time here :)



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: