ikeepon
03-29-2006, 03:01 PM
Classic problem of IE narrowing the text because of improper translation of CSS code. The fix used to work but no longer any ideas???
Oh, the site is LatinoPundit.com
This is my CSS:
body {
margin:0px 10px 0px 10px;
padding:0px;
background:#fff;
font-size: 11px;
font-family:verdana, arial, sans-serif;}
A { color:#0000FF; text-decoration:none; }
A:link { color:#0000FF; text-decoration:none; }
A:visited { color:#0000FF; text-decoration:none; }
A:active { color:#CF4500; }
A:hover { color:#CF4500;text-decoration:underline }
}
.blogbody {
color:#333;
font-size:11px;
font-weight:normal;
padding-left:10px;
padding-right:10px;
}
BLOCKQUOTE {
border: dotted 1px #006699;
background:#FFFFCC;
font-size: 11px;
color:#666;
font-family:verdana, arial, sans-serif;
padding-left:8px;
padding-right:8px;
padding-top:0px;
padding-bottom:0px;
}
#leftcontent {
position: absolute;
left:10px;
top:130px;
width:200px;
background:#orange;
border:1px solid #000;
font-size:10px
}
#centercontent {
top:130px;
background:#fff;
margin-left: 199px;
margin-right:199px;
border:1px solid #000;
/*
IE5x PC mis-implements the box model. Because of that we sometimes have
to perform a little CSS trickery to get pixel-perfect display across browsers.
The following bit of code was proposed by Tantek Celik, and it preys upon a CSS
parsing bug in IE5x PC that will prematurly close a style rule when it runs
into the string "\"}\"". After that string appears in a rule, then, we can override
previously set attribute values and only browsers without the parse bug will
recognize the new values. So any of the name-value pairs above this comment
that we need to override for browsers with correct box-model implementations
will be listed below.
We use the voice-family property because it is likely to be used very infrequently,
and where it is used it will be set on the body tag. So the second voice-family value
of "inherit" will override our bogus "\"}\"" value and allow the proper value to
cascade down from the body tag.
The style rule immediately following this rule offers another chance for CSS2
aware browsers to pick up the values meant for correct box-model implementations.
It uses a CSS2 selector that will be ignored by IE5x PC.
Read more at http://www.glish.com/css/hacks.asp
*/
voice-family: "\"}\"";
voice-family: inherit;
margin-left: 201px;
margin-right:201px;
}
html>body #centercontent {
margin-left: 201px;
margin-right:201px;
}
#rightcontent {
position: absolute;
right:10px;
top:130px;
width:200px;
background:#fff;
border:1px solid #000;
}
#banner {
background:#fff;
height:0px;
border-top:1px solid #000;
border-right:1px solid #000;
border-left:1px solid #000;
voice-family: "\"}\"";
voice-family: inherit;
height:39px;
}
html>body #banner {
height:100px;
}
p,h1,pre {
margin:0px 10px 10px 10px;
}
h1 {
font-size:14px;
padding-top:10px;
}
#banner h1 {
font-size:14px;
padding:10px 10px 0px 10px;
margin:0px;
}
#rightcontent p {
font-size:10px
}
.sidetitle {
font-family:verdana, arial, sans-serif;
color:#666;
background:#ffc;
font-size:11px;
font-weight:bold;
line-height:14px;
padding:2px;
padding-bottom:4px;
padding-left:5px;
text-align:left;
letter-spacing: .1em;
border:1px solid #666;
}
.powered {
font-family:verdana, arial, sans-serif;
color:#CCC;
font-size:xx-small;
font-weight:bold;
border-top:1px solid #CCC;
border-bottom:1px solid #CCC;
line-height:140%;
text-transform:uppercase;
padding:2px;
margin-top:10px;
text-align:center;
letter-spacing:.2em;
}
/*
FAUX BUTTONS
*/
.xmlbutton, .geobutton, .radiobutton {
border:1px solid;
padding:0 3px;
font:bold 10px verdana,sans-serif;
color:#FFF;
text-decoration:none;
margin:0;
}
.xmlbutton, .radiobutton { border-color:#FC9 #630 #330 #F96;background:#F60;}
.geobutton { border-color:#3C6 #063 #063 #3C6;background:#093;}
.radiobutton { background-image: url('/code/images/RadioMug.png');
background-position: bottom;
background-repeat: no-repeat;
text-align:center;
width:36px; height:36px;
}
.posted {
font-family:verdana, arial, sans-serif;
font-size:9px;
color:#000000;
margin-bottom:15px;
text-decoration:italic;
}
I would appreciate a fix. Thanks
Oh, the site is LatinoPundit.com
This is my CSS:
body {
margin:0px 10px 0px 10px;
padding:0px;
background:#fff;
font-size: 11px;
font-family:verdana, arial, sans-serif;}
A { color:#0000FF; text-decoration:none; }
A:link { color:#0000FF; text-decoration:none; }
A:visited { color:#0000FF; text-decoration:none; }
A:active { color:#CF4500; }
A:hover { color:#CF4500;text-decoration:underline }
}
.blogbody {
color:#333;
font-size:11px;
font-weight:normal;
padding-left:10px;
padding-right:10px;
}
BLOCKQUOTE {
border: dotted 1px #006699;
background:#FFFFCC;
font-size: 11px;
color:#666;
font-family:verdana, arial, sans-serif;
padding-left:8px;
padding-right:8px;
padding-top:0px;
padding-bottom:0px;
}
#leftcontent {
position: absolute;
left:10px;
top:130px;
width:200px;
background:#orange;
border:1px solid #000;
font-size:10px
}
#centercontent {
top:130px;
background:#fff;
margin-left: 199px;
margin-right:199px;
border:1px solid #000;
/*
IE5x PC mis-implements the box model. Because of that we sometimes have
to perform a little CSS trickery to get pixel-perfect display across browsers.
The following bit of code was proposed by Tantek Celik, and it preys upon a CSS
parsing bug in IE5x PC that will prematurly close a style rule when it runs
into the string "\"}\"". After that string appears in a rule, then, we can override
previously set attribute values and only browsers without the parse bug will
recognize the new values. So any of the name-value pairs above this comment
that we need to override for browsers with correct box-model implementations
will be listed below.
We use the voice-family property because it is likely to be used very infrequently,
and where it is used it will be set on the body tag. So the second voice-family value
of "inherit" will override our bogus "\"}\"" value and allow the proper value to
cascade down from the body tag.
The style rule immediately following this rule offers another chance for CSS2
aware browsers to pick up the values meant for correct box-model implementations.
It uses a CSS2 selector that will be ignored by IE5x PC.
Read more at http://www.glish.com/css/hacks.asp
*/
voice-family: "\"}\"";
voice-family: inherit;
margin-left: 201px;
margin-right:201px;
}
html>body #centercontent {
margin-left: 201px;
margin-right:201px;
}
#rightcontent {
position: absolute;
right:10px;
top:130px;
width:200px;
background:#fff;
border:1px solid #000;
}
#banner {
background:#fff;
height:0px;
border-top:1px solid #000;
border-right:1px solid #000;
border-left:1px solid #000;
voice-family: "\"}\"";
voice-family: inherit;
height:39px;
}
html>body #banner {
height:100px;
}
p,h1,pre {
margin:0px 10px 10px 10px;
}
h1 {
font-size:14px;
padding-top:10px;
}
#banner h1 {
font-size:14px;
padding:10px 10px 0px 10px;
margin:0px;
}
#rightcontent p {
font-size:10px
}
.sidetitle {
font-family:verdana, arial, sans-serif;
color:#666;
background:#ffc;
font-size:11px;
font-weight:bold;
line-height:14px;
padding:2px;
padding-bottom:4px;
padding-left:5px;
text-align:left;
letter-spacing: .1em;
border:1px solid #666;
}
.powered {
font-family:verdana, arial, sans-serif;
color:#CCC;
font-size:xx-small;
font-weight:bold;
border-top:1px solid #CCC;
border-bottom:1px solid #CCC;
line-height:140%;
text-transform:uppercase;
padding:2px;
margin-top:10px;
text-align:center;
letter-spacing:.2em;
}
/*
FAUX BUTTONS
*/
.xmlbutton, .geobutton, .radiobutton {
border:1px solid;
padding:0 3px;
font:bold 10px verdana,sans-serif;
color:#FFF;
text-decoration:none;
margin:0;
}
.xmlbutton, .radiobutton { border-color:#FC9 #630 #330 #F96;background:#F60;}
.geobutton { border-color:#3C6 #063 #063 #3C6;background:#093;}
.radiobutton { background-image: url('/code/images/RadioMug.png');
background-position: bottom;
background-repeat: no-repeat;
text-align:center;
width:36px; height:36px;
}
.posted {
font-family:verdana, arial, sans-serif;
font-size:9px;
color:#000000;
margin-bottom:15px;
text-decoration:italic;
}
I would appreciate a fix. Thanks