Freepages-Help-L Archives

Archiver > Freepages-Help > 2009-01 > 1231191659


From: "Barry Carlson" <>
Subject: Re: [FreeHelp] IE 6
Date: Tue, 6 Jan 2009 10:40:59 +1300
References: <mailman.8109.1228961590.2409.freepages-help@rootsweb.com><BLU149-W832D7C3C300F9A38F21D49E4E00@phx.gbl><BC2C38D3578C47648F0664FF1E5490DC@BERT><BLU149-W81442F0574BF10B2CC2B39E4E00@phx.gbl><8F1963CD95A34979AAE7065529E56F6F@BERT><0F7BC407B1554D24AD38FE4271160DA7@BERT><6DE2CA77812E4CF496747F910A336A79@BERT>


On Sunday, January 04, 2009 9:08 PM UTC+13)
I wrote:-

> Cindy
>
> If you wish to, it is possible using IE Conditional Comments to render
> your
> page correctly in IE6, IE5.5, and IE5.01. Use the following:-
>
> <!--[if lte IE 6]>
> <style>
> #navigation li a {margin-bottom: -1.5em;}
> </style>
> <![endif]-->
> <!--[if lt IE 6]>
> <style>
> #container {width: 832px;}
> #userContentFP {text-align: center;}
> </style>
> <![endif]-->
>
> If you want to restore the margin above #container, the following will
> trigger the hasLayout in IE6 and below:-
>
> <span style="display: block; clear: both"></span>
> <div id="container">
>
> Finally, if you add #container to a:link, e.g.
>
> #container a:link {font-weight: bold;}
>
> the style will no longer affect the Freepages bottom banner font.

Cindy's page is at:-
http://freepages.genealogy.rootsweb.ancestry.com/~holdridge/records.html
-------------------------------------

Though not advocating "hacks" generally, the age of the IE6 and IE5.x
browsers is such that the following equivalent CSS hacks will not change
with time.

*html #navigation li a {
margin-bottom:-1.5em; /* IE6 and below */
}

*html #container {
width:832px; /* IE5.x sees 832px and IE6 sees 800px; */
width /**/:/**/ 800px; /* IE6 sees 800px */
}

*html #userContentFP {
text-align:center; /* Centers #container IE5.x */
text-align /**/:/**/ left;
}

Barry


This thread: