IE minimum width fix -IE expressions problem?
-
So after investing time into finding out how to solve this problem I stumbled across a good solution, even uses em’s. It works outside my blog, but for some reason it refuses to apply in my blog.
The code (from https://www.svendtofte.com/code/max_width_in_ie/);
p {
border:1px solid red;
width:expression(
document.body.clientWidth > (500/12) *
parseInt(document.body.currentStyle.fontSize)?
"30em":
"auto" );
}I’m attempting to apply this to “.post p” from K’s default theme (as the base theme code.)
I even dropped the .post out, and styled all my p’s this way, the IE expression doesn’t execute, the css comes out, see the p’s with a red border..
Is there something in wordpress that would prevent the expression from working? Any special places you’re supposed to put it?
- The topic ‘IE minimum width fix -IE expressions problem?’ is closed to new replies.