![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a web application which uses external CSS files extensively. Now, I need to port this application to run inside a portlet. So, it will not generate a complete HTML document, but just a fragment. How can I apply an external CSS file not to the whole HTML document, but just to a div section ? |
#3
| |||
| |||
|
|
Hi, I have a web application which uses external CSS files extensively. Now, I need to port this application to run inside a portlet. So, it will not generate a complete HTML document, but just a fragment. How can I apply an external CSS file not to the whole HTML document, but just to a div section ? I see 2 alternatives: 1) to use a system prefix in every ID and CLASS attribute. This will be generate a lot of work for me. 2) to code a JavaScript code to load the CSS file and apply it to the document. I think this is possible, but I don´t know how to do it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |