Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-07-07, 12:37 PM   #1
superklye
 
Join Date: Jul 2004
Location: MKE
Posts: 13,629
Default (Web) Design for IE7

Any other designer/developers here faced with fixing their IE6/FF hacks in order to accommodate IE7 now?

I have my own web design company and one of my clients came back to me asking for help getting his site up to snuff for IE7 since it has a completely revamped CSS rendering engine. Whereas for IE6, in order to design around it's various bugs and weird standards you could use something to the effect of:

#header{
...
}

html>body #header{
...
...
}

You were able to have two different styles for both IE6 (the first entry) and FF (the second entry) because IE6 didn't understand the html>body portion in front of the layer ID.

Now...IE7 understands that and it's using the FF styles which is screwing up its look.

I have a feeling this is going to be a pain in the ass trying to recode a third set of styles for IE7. Damn you MS!
superklye is offline   Reply With Quote
Old 01-07-07, 02:30 PM   #2
superklye
 
Join Date: Jul 2004
Location: MKE
Posts: 13,629
Default Re: (Web) Design for IE7

w00t!

Found a new hack.

*:lang(en) #header{
...
}


IE7 doesn't understand :lang so it'll skip those while FF will still render them.
superklye is offline   Reply With Quote
Old 01-07-07, 07:36 PM   #3
superklye
 
Join Date: Jul 2004
Location: MKE
Posts: 13,629
Default Re: (Web) Design for IE7

Sigh...IE can't read it, but neither can FF 2.0. I thought it was working fine because I refreshed the page in IE6, IE7 and FF 2.0 and it looked perfect in all three, but it turned out that FF was still going from the cached CSS that worked fine previously.

Anyway, I got around it all using a conditional:

<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="style_ie.css" />
<![endif]-->

And just separated the IE/FF styles into their own files. It's more work when/if changes need to happen, but it's better this way in the long run I s'pose.


And it works.
superklye is offline   Reply With Quote
Old 01-08-07, 03:59 AM   #4
lightman
Registered User
 
lightman's Avatar
 
Join Date: Jun 2004
Posts: 1,026
Send a message via ICQ to lightman
Default Re: (Web) Design for IE7

Quote:
Originally Posted by superklye
Sigh...IE can't read it, but neither can FF 2.0. I thought it was working fine because I refreshed the page in IE6, IE7 and FF 2.0 and it looked perfect in all three, but it turned out that FF was still going from the cached CSS that worked fine previously.
Yep, FF has a tendency to cache almost everything...

I suggest installing this : http://chrispederick.com/work/webdeveloper/ ...

It's an amazing little extension...
lightman is offline   Reply With Quote
Old 01-08-07, 07:38 AM   #5
superklye
 
Join Date: Jul 2004
Location: MKE
Posts: 13,629
Default Re: (Web) Design for IE7

Quote:
Originally Posted by lightman
Yep, FF has a tendency to cache almost everything...

I suggest installing this : http://chrispederick.com/work/webdeveloper/ ...

It's an amazing little extension...
Nice...I haven't used that in over a year...I actually kind of forgot about it.

Thanks for the link!
superklye is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
$129.99 - HP 2011x Black 20" LED BackLight LCD Monitor Slim Design News 20-Inch 0 06-10-12 01:17 PM
How Google and Microsoft taught search to "understand" the Web News Archived News Items 0 06-07-12 06:50 AM
The Eephus League Magazine: Pitch-Perfect Web Design News Archived News Items 0 05-21-12 01:30 PM
Where Does Web Culture Go From Here? That's the Big Question at ROFLcon III News Archived News Items 0 05-06-12 06:50 PM
NV30 Design Change??? Stavros Rumor Mill 7 09-01-02 07:32 PM

All times are GMT -5. The time now is 12:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.