0

I tried a normal test project to check if CSS is applying to the JSP page. But, no matter where I put my css file in the hierarchy, it is not working. Where to place the css file and how to include the tag in JSP?

this is my Project hierarchy

I wrote a simple

    <link href="css/grayscale.css" rel="stylesheet" type="text/css" />

to include css file.

my css file only consists of a test style to change paragraph style.

Please Help :(

Nymeria123
  • 51
  • 2
  • 8

1 Answers1

1

In the same location of your JSP file, create a CSS directory (named css) in which you create your CSS file. To access it try using "/css/grayscale.css"

achref
  • 1,150
  • 1
  • 12
  • 28