Forum Moderators: open

Message Too Old, No Replies

IE 6 SP1 refuses to load CSS code

         

Wertigon

9:22 am on Jul 30, 2003 (gmt 0)

10+ Year Member



Anyone care to help me? I'm using HTML 4.01 Strict, it validates. In Opera 7.11 it recognises all styles as they are and it looks just beautiful, in IE it refuses to work at all and serves me an unstyled bare-bones page.

I'm using the following CSS:

<style type="css/text">
body {color:#000; background-color : #FEB;}
h1, h3 { text-align : center; }
h2 { font-style : italic; }
p { text-align : justify; }

dt {
font-weight : bold;
}

dd {
position : relative;
left : -20px;
display : list-item;
}

#main {
float: left;
width : 67%;
margin : 10% 0% 0% 2%;
border : 3px double gray;
padding : 20px 10px 20px 10px;
color : #000;
background-color : #DEF;
}

#sidebar {
float : right;
width : 28%;
}

#sidebar div {
border : 3px double gray;
width : auto;
padding : 5px 10px 5px 10px;
margin : 10px 0px 10px 25px;
color : #000;
background-color : #DFE;
}

.sign {
float : right;
text-align : right;
font-style : italic;
}

.floatleft {
float : left;
}
</style>

WibbleWobble

9:40 am on Jul 30, 2003 (gmt 0)

10+ Year Member



Could (maybe) be the <style> tag. Its usually declared as text/css, not css/text.

Wertigon

9:46 am on Jul 30, 2003 (gmt 0)

10+ Year Member



Yeah, that solved it. Thanks. =)

Hmm... New way to hide styles from IE... Interesting. Oh well...