I am having trouble loading dinamycally CSS in IE.
I have different CSS files, and I need to add these files to my head in a specific order. For example, I have a client file that should always have high priority, and I should include it at the beginning when reading client information.
So, I have something like:
< head > < link rel: "stylesheet", type: "text/css", href: "StartingCSS.css"> < link rel: "stylesheet", type: "text/css", href: CSSclient.CSS> < /head >
At some point, I should include another css file specific to another module in my head, and using the prototype and JavaScript, I will include this file first in my head, so I have something like this:
< head > < link rel: "stylesheet", type: "text/css", href: "MyModule.css"> < link rel: "stylesheet", type: "text/css", href: "StartingCSS.css"> < link rel: "stylesheet", type: "text/css", href: CSSclient.CSS> < /head >
In a regular browser, such as chrome or FF, the CSSclient file still has the highest priority because it is the last in the document, but in IE the last inserted file gets power.
Anyone have a great idea for me? :)
Thanks a lot Jose