Reputation: 255
I am using for the first time Java Web in Netbeans IDE 8.0.2, I've added the css sheets in an assets folder at the same level as WEB-INF under Web Pages directory, and I included them as follow:
<link href="./assets/css/style.css" rel="stylesheet">
I also tried: <link href="assets/css/style.css" rel="stylesheet">
But for some reason, my pages are displayed as if there's no css sheets How should I include them in another way? Or is there something I need to add?
Thank you
Upvotes: 2
Views: 566
Reputation: 45
I don't know anything about Netbeans, but have you tried using the style tag or the style attribute? If the style tag works you probably have a typo in your file directory.
<style>p{color:red;}</style>
<p style="color: red;"></p>
Upvotes: 1