PDA

View Full Version : Assign stylesheets to panel



AgentSmith
1 Oct 2009, 12:05 PM
I have a panel which needs to be associated with up to 8 different stylesheets (located in separate css files). These stylesheets will be loaded sometime after the panel is displayed. How do I best do this?

Thanks,
AS

aconran
2 Oct 2009, 5:06 AM
Use a different CSS class for the Panel for each of the 8 different stylesheets.

You can then dynamically replace this CSS class as you want to change the stylesheet and allow the browser to do its thing.

AgentSmith
2 Oct 2009, 5:40 AM
Sorry, but I don't know what you mean by use a different css class? Can you show me an example?