![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
| http://www.mattkruse.com/temp/css_expressions.html One of the standard CSS questions is "how can I shade every other table row a different color with CSS?" The answers are usually 1) you can't (yet), 2) put a class on every other tr, or 3) use javascript to do the styling for you. Well, I've been playing the CSS expressions quite a bit lately and I've found a much simpler solution which works in IE5.5+, using "expressions". If you're creating a web app that uses exclusively IE, or if you want to add this feature for the majority of site visitors (using IE), then you can use the technique in the url above. At that url are some other fun things that CSS expressions can do also. I realize the CSS expressions are non-standard and not a solution which everyone will find acceptable. But for those that can accept the limited browser support (IE only) then they are quite powerful and convenient. On projects where IE is the only browser being used to access the web app, this is going to be a great solution for me, I think. And in the future, as CSS evolves and browsers support more advanced selectors, the CSS file can be changed simply without needing to change anything in the content. Thoughts? |
#3
| |||
| |||
|
|
I realize the CSS expressions are non-standard and not a solution which everyone will find acceptable. Thoughts? |
#4
| |||
| |||
|
| http://www.mattkruse.com/temp/css_expressions.html One of the standard CSS questions is "how can I shade every other table row a different color with CSS?" The answers are usually 1) you can't (yet), 2) put a class on every other tr, or 3) use javascript to do the styling for you. Well, I've been playing the CSS expressions quite a bit lately and I've found a much simpler solution which works in IE5.5+, using "expressions". If you're creating a web app that uses exclusively IE, or if you want to add this feature for the majority of site visitors (using IE), then you can use the technique in the url above. At that url are some other fun things that CSS expressions can do also. I realize the CSS expressions are non-standard and not a solution which everyone will find acceptable. But for those that can accept the limited browser support (IE only) then they are quite powerful and convenient. On projects where IE is the only browser being used to access the web app, this is going to be a great solution for me, I think. And in the future, as CSS evolves and browsers support more advanced selectors, the CSS file can be changed simply without needing to change anything in the content. Thoughts? |

#5
| ||||||
| ||||||
|
|
One of the standard CSS questions is "how can I shade every other table row a different color with CSS?" |
|
The answers are usually 1) you can't (yet), |
|
2) put a class on every other tr, |
|
or 3) use javascript to do the styling for you. |
|
I realize the CSS expressions are non-standard and not a solution which everyone will find acceptable. |
|
Thoughts? |
#6
| |||
| |||
|
|
I realize the CSS expressions are non-standard and not a solution which everyone will find acceptable. |
#7
| |||
| |||
|
|
I hope this newsgroup doesn't adopt as a criterion for posts that they only apply to all browsers, or even the widest possible assortment. |
#8
| ||||
| ||||
|
|
I use a gecko-based browser, as do 27% of my visitors. |
|
An IE-only solution is no solution at all for me. |
|
What audience uses IE 5.5+ only? Maybe a company intranet that uses Windows and no other O/S |
|
that plans always to use IE and no other O/S, and knows that its plans will never change. Methinks your solution is a curiousity only. |
#9
| |||
| |||
|
|
Note the "www" in this group's name, hence your "method" is off topic here. |
#10
| |||
| |||
|
|
Correct me if I'm wrong (and I may well be), but don't MSIE's expressions require JScript to be enabled? If so, what's the advantage of using them over proper scripting? |
![]() |
| Thread Tools | |
| Display Modes | |
| |