css-expressions

Evaluate a css expression only in IE<7 w/out using conditional comments?

I already know: "Don't use css expressions!" My question is not about whether I should be using an expression or if there is an alternative; my question is simply: Can I get a css expression to only be evaluated in versions of IE prior to version 7 without using conditional comments? I occasionally use an underscore hack to hide a rule...

Disable grey border on anchor (<a>) elements on focus...

I am trying to make the ugly grey border that appears around anchor tags go away. The CSS property "outline:none;" works for Firefox, but how can I do it in IE. Preferably using CSS expressions or jquery. I'm not worried about accessibility BTW. Based on your suggestions I found these to be the best solutions... The jquery(for IE brows...

If I have a CSS solution for all browsers except IE then what should be chosen for IE? CSS expression vs JavaScript vs jQuery with plugin?

If I have a CSS solution for all browsers except IE then what should be chosen for IE? CSS expression in IE conditional comments or JavaScript in IE conditional comments or jQuery + plugin in IE conditional comments Which will be less slow in rendering speed? ...

jQuery Ajax load images problem

I have a code that would call $.load() to get an HTML fragment. In the fragment there will be a list of images and a script that would do some calculation based on the list size. The fragment looks like <div> <ul> <li><img .../></li> <li><img .../></li> ... </ul> </div> <script> //... script to do calculation on the ...

offsetWidth or CSS expression problem for IE6

I need to set the width of textboxes as 80% of it's parent. So first I used td input[type="text"] { width: 80%; } But it was not rendering properly if the input is the child of td. So, I used Css expressions td input[type="text"] { width: expression(this.parentNode.offsetWidth*0.8); } It is working as I wanted in...

Setting CSS Expression using $.css() in JQuery

Hello all I'm trying to set a css expression for an attribute for an element as follows. var scrollTopExpr = '$(document).scrollTop()'; var expr = "expression(eval(" + scrollTopExpr + "))"; $(this).css("top", expr); But i'm getting "Invalid Argument" as an error. Any ideas? ...