CSS is not taking effect
Sorry, another Noob question here:
I have a Java Web App with the following dir structure:
HomePage.jsp has this:
But for some reason, when this JSP gets served, the stylesheet is not taking effect, and I can't figure out why.
<link rel="stylesheet" type="text/css" href="../../CSS/myStyle.css" />
I have a feeling it's something stupid and small that I missed.
The issue was that I was assuming the path to the CSS resource is relative to the JSP location. Instead, it should be relative to the app context root location.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread