Reply
IE6 - hacks, anyone knows?
Old 05-07-2008, 05:03 AM IE6 - hacks, anyone knows?
Average Talker

Posts: 17
Name: Adrian
Hi,

I have been working on a website that is almost finished, but each time I finish it up and looks like its done it actually isn't when I open it in IE6 everything including menu and text and some images seems to change their position when opening it in IE6.

Would anyone know any website and hacks or codes or anything that would fix it forever and in the future pages. What is it all about, please!!!

Thank you!!!
elv8 is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 05-07-2008, 09:21 AM Re: IE6 - hacks, anyone knows?
A Monkey Typing's Avatar
Super Talker

Latest Blog Post:
Valid Markup and the W3C
Posts: 115
Location: Northeastern PA
Quote:
Originally Posted by elv8 View Post
Would anyone know any website and hacks or codes or anything that would fix it forever and in the future pages
Boy wouldn't this make all of our lives easy? I don't think such a thing exists.

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
A Monkey Typing is offline
Reply With Quote
View Public Profile Visit A Monkey Typing's homepage!
 
Old 05-07-2008, 09:43 AM Re: IE6 - hacks, anyone knows?
Average Talker

Posts: 17
Name: Adrian
Quote:
Originally Posted by A Monkey Typing View Post
Boy wouldn't this make all of our lives easy? I don't think such a thing exists.

you could try this: http://code.google.com/p/ie7-js/ though I haven't had a chance to play with it yet.
Thanks for that, I will give it a test and see how it functions with my site once its up online. Ive read about it on the google page and sounds very interesting.
elv8 is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 02:37 PM Re: IE6 - hacks, anyone knows?
LadynRed's Avatar
Super Moderator

Posts: 5,557
Location: Tennessee
Quote:
Boy wouldn't this make all of our lives easy? I don't think such a thing exists.
Wanna make a bet ??? You'd lose !
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.
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-07-2008, 06:00 PM Re: IE6 - hacks, anyone knows?
seocd's Avatar
Experienced Talker

Posts: 43
Name: Ryan
you can create a CSS specifically for IE6 so if the browser is IE6 it will always and only call the ie6 css file. Just edit your regular css for firefox and ie7 and make a different CSS for ie6 that way all of your pages in the future can be compatible in all browsers. You would obviously have to play around in IE6 to create your CSS but then use
<!--[if lte IE 6]>
<link rel="stylesheet" href="css/ie_master.css" type="text/css" media="screen" />
<![endif]-->

to call that specific CSS when in ie6
seocd is offline
Reply With Quote
View Public Profile
 
Old 05-08-2008, 02:29 PM Re: IE6 - hacks, anyone knows?
LadynRed's Avatar
Super Moderator

Posts: 5,557
Location: Tennessee
It's called a CONDITIONAL COMMENT
__________________
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"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-08-2008, 08:48 PM Re: IE6 - hacks, anyone knows?
pab
Junior Talker

Posts: 3
Name: pab
conditional comments are the way to go for this, you can put both comments for ie7 and ie6 in the same css file too.
pab is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 12:16 PM Re: IE6 - hacks, anyone knows?
LadynRed's Avatar
Super Moderator

Posts: 5,557
Location: Tennessee
Quote:
you can put both comments for ie7 and ie6 in the same css file too
.
Conditional Comments do NOT go in the CSS file, they go in the HTML in the <HEAD> section.
__________________
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"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 05:07 PM Re: IE6 - hacks, anyone knows?
wayfarer07's Avatar
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.
__________________
Go FREELANCE--------------------------------Hire Me

Last edited by wayfarer07 : 05-09-2008 at 05:11 PM.
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 06:05 PM Re: IE6 - hacks, anyone knows?
LadynRed's Avatar
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"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-10-2008, 08:26 PM Re: IE6 - hacks, anyone knows?
wayfarer07's Avatar
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.
__________________
Go FREELANCE--------------------------------Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 11:45 AM Re: IE6 - hacks, anyone knows?
LadynRed's Avatar
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"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 12:14 PM Re: IE6 - hacks, anyone knows?
nyef's Avatar
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.
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old Yesterday, 03:24 PM Re: IE6 - hacks, anyone knows?
LadynRed's Avatar
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"
LadynRed is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to IE6 - hacks, anyone knows?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.24478 seconds with 14 queries