CSS expressions were introduced in Internet Explorer 5.0 to allow a JavaScript expression to be assigned to a CSS property. They are no longer supported as of Internet Explorer 8.0.
Questions tagged [css-expressions]
26 questions
1
vote
3 answers
set the body height width css expressions
I want to change the body height dynamically using css expression.. my code is
HTML
CSS
body {
width: 100px;
height: expression(document.documentElement.clientHeight);
…

Muhammad Usman
- 10,426
- 22
- 72
- 107
1
vote
2 answers
Using CSS Expressions are good or bad?
I need some clarifiction on applying expressions in css. Some are suggesting don't go for using css expressions. Please clarify my doubt. thanks

Pavan Kumar
- 1,616
- 5
- 26
- 38
1
vote
1 answer
CSS expression crashing the browser
In my website, I want the body tag to have a minimum width of 640px. Thing is, IE6 doesn't recognize min-width, so I'm trying to fix this with a CSS expression in my IE6 stylesheet:
body {
width : expression(this.clientWidth < 639 ? "640px" :…

federico-t
- 12,014
- 19
- 67
- 111
0
votes
1 answer
multiple css expression IE
I want to apply drop shadow filter only if the input type is Checkbox.
Following is working
input {
filter: expression("progid:DXImageTransform.Microsoft.Alpha(opacity=100)");
}
However I want to include this.type=='checkbox' in it. Some…

user420054
- 65
- 4
- 14
0
votes
1 answer
How to replace IE8 css expressions with javascript
Actualy I have applied css styles with expressions. But now in IE8 its not getting applied. How to fix this using css,javascript?
.fixedHeaderTr1
{
z-index:11;
position:relative;
top:expression(this.offsetParent.scrollTop);
…

Janani sridhar
- 23
- 3
- 10
0
votes
1 answer
CSS - dynamically calculate width for IE11 with out Jquery
My application works fine in IE8, now we are migrating to IE11. Please find the div css below
.contentDiv{
height:expression(document.body.clientHeight - contentDiv.getBoundingClientRect().top);
overflow-y:scroll;
}
Css expression has been…
0
votes
1 answer
Alternative For Replacing CSS expression for IE10 and above version
I have an old ASP web application,which is riddled with CSS expressions.
They appear in the CSS file:
#tabtreeDiv
{
position:absolute;
top:expression((imageOffset + 23) + 'px');
left:0px;
width:100%;
…

user3217977
- 1
- 2
0
votes
3 answers
Should we use IE's CSS Dynamic properties?
Should we use IE's CSS Dynamic properties?
I read IE8+ would not support these.
What is the best strategy to handle this?

rajakvk
- 9,775
- 17
- 46
- 49
0
votes
1 answer
CSS expression for tablet device width
I need to findout and apply tablet width from css with css expression.
I have a div content. it should apply width 100% in portrait mode and When i turn to landscape the div should change the width to half of the tablet device width(tablet width/2).…

Pavan Kumar
- 1,616
- 5
- 26
- 38
0
votes
1 answer
Avoid CSS expressions
I understand what a CSS expression is, YSlow is reporting that my page is using one:
Grade B on Avoid CSS expressions
There are a total of 1 expression
inline