On 29/12/2010 5:41 PM, Lisa Frost wrote:
Following on from earlier when i was advised to use overflow:hidden
to get my div to expand, i've redone my template to include this plus
what i think is the correct way to trigger haslayout for IE6
However since i have a) never before added a conditional comment to a
webpage! b) added a second .css file for the IE 6 bit c) not
altogether sure if i have added the correct code to trigger the
hasLayout
Could anyone spare me a minute and tell me if i have done any of
these three things correctly.
a) and b)
<link href="../css/mainstyles2.css" rel="stylesheet" type="text/css"
media="screen" /> <!-- [if IE 6]> <link href="../css/ie6.css"
rel="stylesheet" type="text/css"> <![endif]-->
I see no use for IE conditional comments if you are just fixing up buggy
IE6 or IE7 rendering issues due to a lack of layout or buggy behavior
due to layout.
c) #header { margin: 0; padding: 0; background-color: #66accd;
overflow: hidden; height:1%; }
Since there is no height declared for the parent of div#header, this is
safe hack to use without effecting good browsers.
If anyone has IE 6 could they test it for me please:
http://www.diabetespolarflight.org/xhtml/template_2.html The top part
of the page should have a blue background behind the title and
donations box.
Apart from installing virtual partitions and paying for browsercam
is there a free way on line to test the odd page in IE6?
Thanks
Lisa
Since the following CSS works offline in IE6 (IE tester),
#header {
margin: 0;
padding: 0;
background-color: #66accd;
/*min-height: 148px;*/
overflow: hidden;
height: 1%; /* hasLayout trigger for IE6- */
}
I would dare say that this is an issue with the server.
To feed IE6 different CSS and can use the start html hack.
* html #header {
height: 1%; /* hasLayout trigger for IE6- */
}
--
Alan http://css-class.com/
Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/