How to change in CSS class at runtime  
Author Message
enggvipingupta@gmail.com





PostPosted: 2007-1-22 16:43:00 Top

java-programmer, How to change in CSS class at runtime Hi frinds,

Can anybody tell me that can I pass the dynamic data in my
CSS(Cascading Style Sheel) class.
If yes then how?

Actually I have a CSS which I am including in a number of JSP pages,
Problem is that I want to change the configuration of my CSS class
result differently for the diffrent JSPs.
Please help me out if anybody can.


Thanks & Regards

 
KiLVaiDeN





PostPosted: 2007-1-22 19:22:00 Top

java-programmer >> How to change in CSS class at runtime > email***@***.com a 閏rit :
>
> Hi frinds,
>
> Can anybody tell me that can I pass the dynamic data in my
> CSS(Cascading Style Sheel) class.
> If yes then how?
>
> Actually I have a CSS which I am including in a number of JSP pages,
> Problem is that I want to change the configuration of my CSS class
> result differently for the diffrent JSPs.
> Please help me out if anybody can.
>
>
> Thanks & Regards

Hello,

Usually you shouldn't do that, because it breaks the possibility for
the browser to cache the CSS. It could lead to problems in that matter.

The usual way to do that, is to include a "general" CSS, that includes
your general styles, and for each page, include a specific CSS for
_that_ page.

Cheers
K