![]() |
| Sponsored Links (We share ad revenue): |
|
|
Re: IE6 - hacks, anyone knows? | |
|
Super Talker
Latest Blog Post:
Valid Markup and the W3C Posts: 115
Location: Northeastern PA
|
Quote:
you could try this: http://code.google.com/p/ie7-js/ though I haven't had a chance to play with it yet.
__________________
2MonkeysTyping Webdesign Monkeybusiness |
|
|
|
|
|
|
Re: IE6 - hacks, anyone knows? | |
|
Average Talker
Posts: 17
Name: Adrian
|
Quote:
![]() |
|
|
|
|
|
|
Re: IE6 - hacks, anyone knows? | |
|
Super Moderator
![]() Posts: 5,557
Location: Tennessee
|
Quote:
Here's MY go to source for IE bug whacking: www.positioniseverything.net It would be helpful if you post a link to the site having the problems.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !! "Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" Last edited by LadynRed : 05-07-2008 at 02:39 PM. |
|
|
|
|
|
|
Re: IE6 - hacks, anyone knows? |
|
Extreme Talker
Posts: 216
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
I probably shouldn't be telling you this, but it is perfectly possible to write code into your stylesheets that targets only IE6 or IE7 specifically.
The way I do it is precede a statement with an underscore like this: _margin: 2px; <= this targets only IE6 and below. Or with an asterisk like this: *margin: 5px; <= this targets only IE7 and below. The first method is 100% safe, because the bug that allows IE6 to be targeted in this manner was fixed in IE7. Using one bug to fix another is somewhat questionable, and I would offer that the second method is more debatable as we don't know the full scope and nature of IE8 as of yet. However, I use both techniques, to save the time of keeping separate stylesheets. Some people disagree with my approach, but it's what I do. Last edited by wayfarer07 : 05-09-2008 at 05:11 PM. |
|
|
|
|
|
Re: IE6 - hacks, anyone knows? |
|
Super Moderator
![]() Posts: 5,557
Location: Tennessee
|
You're not telling me anything I don't know. I REFUSE to put hacks like that into my CSS, you never know when it's going to blow up in your face as things change with the browsers. Better to be safe. My IE only stylesheets contain very minimal code, so it's not like I'm maintaining multiple copies of my full stylesheet.
That's the way I do it.. keep it clean and separate.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !! "Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" |
|
|
|
|
|
Re: IE6 - hacks, anyone knows? |
|
Extreme Talker
Posts: 216
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Actually, I wasn't telling you, Lady, I assume you know my silly methods. I was addressing this to the person who started the thread. I should have been more clear in this.
It is worth noting that many professionals, including the folks at Yahoo in some of their CSS, use the same technique that I do. |
|
|
|
|
|
Re: IE6 - hacks, anyone knows? |
|
Super Moderator
![]() Posts: 5,557
Location: Tennessee
|
Sorry Abel.. my bad. I'm sure there are plenty of people using those hacks.. not the wisest of moves, but that's my opinion. If there comes a time when those hacks cause a blowup, at least I won't have to comb thru my code to remove them, I simply remove my extra ie-only CSS file
.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !! "Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" |
|
|
|
|
|
Re: IE6 - hacks, anyone knows? |
|
Average Talker
Posts: 23
Name: Lucas Green
|
Usually the problem with css displaying different in IE6 vs firefox comes from the margin: and padding: settings. One of them affects IE in a different way than other browsers. I've had success reconciling the difference without using IE-only code by converting paddings to margins or vice versa.
|
|
|
|
|
|
Re: IE6 - hacks, anyone knows? |
|
Super Moderator
![]() Posts: 5,557
Location: Tennessee
|
No, the problem with IE6 is the hasLayout nonsense:
http://www.satzansatz.de/cssd/onhavinglayout.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !! "Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday" |
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |