| Author |
Css External Style Sheets Location
|
Graeme Byers
Ranch Hand
Joined: Apr 16, 2004
Posts: 127
|
|
When I double click on the icon for APage.html the <h1> is displayed in green - OK.
When I invoke APage.html from a servlet <h1> is displayed in black.
Where should I place my style sheet ?
Thank you for any help.
C:\apache-tomcat-6.0.18\webapps\HR\WEB-INF\View\APage.html :
C:\apache-tomcat-6.0.18\webapps\HR\WEB-INF\View\css\default.css :
|
 |
Karthik Shiraly
Ranch Hand
Joined: Apr 04, 2009
Posts: 364
|
|
If your webapp URL is
http://localhost:8080/HR
and browser sees a relative href like "css/default.css" it requests the server for
http://localhost:8080/HR/css/default.css
So the /css directory should be under C:\apache-tomcat-6.0.18\webapps\HR.
|
 |
Graeme Byers
Ranch Hand
Joined: Apr 16, 2004
Posts: 127
|
|
|
Your'e right. Thank you.
|
 |
 |
|
|
subject: Css External Style Sheets Location
|
|
|