You are here: Re: editing this IE hack? « HTML « IT news, forums, messages
Re: editing this IE hack?

Posted by BootNic on 09/26/42 11:39

> "John Salerno" <johnjsal@NOSPAMgmail.com> wrote:
> news:u7mdnWLkQoch5nTeRVn-pw@rcn.net....
>
> Here's the example I'm working from:
> ---------------
> The * html Hack
>
> Several readers bristled at my use of the now unfashionable * html
> hack. As well they should! The workaround is trivial. I considered
> including it in the article, but I decided that it broke the flow,
> and that anyone concerned enough would be able to maneuver around
> it.
>
> So instead of doing this:
[snip]
>
> Now, the CSS I'm working with is slightly different, but to put it
> in line with the above example, I just did the switch. Of course,
> this wrecked the look of it. Here's what I had to work with
> originally:
>
[snip]
>
> But that didn't work. So is there more math involved to make the
> change?

<link rel="stylesheet" href="default.css" type="text/css">

<!--[if gte IE 5.5 & lte IE 6]>
<link rel="stylesheet" href="IE.css" type="text/css">
<![endif]-->

<style type="text/css">
body{
margin: 1em;
padding: 1em;
font-size: 2em;
color:#FFD700;
background-color: #008000;
}
</style>

<!--[if gte IE 5.5 & lte IE 6]>
<style type="text/css">
body{
color:#008000;
background-color: #FFD700;
}
</style>
<![endif]-->

--
BootNic Wednesday, February 08, 2006 12:58 AM

Humor is an affirmation of dignity, a declaration of man's
superiority to all that befalls him.
*Romain Gary*

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация