1
Hello, I’m new in front-end development, sorry if my question is a bit rough, but what I would like to know is if it is possible to get the CSS file that was set in a page and uses that same CSS in the others. This project uses Velocity, so I was thinking of something like:
A file called style.vm for example
<HTML>
<HEAD>
#IF(cliente == 1)
<link rel="stylesheet" type="text/css" href="cliente1.css">
#ELSE IF (cliente == 2)
<link rel="stylesheet" type="text/css" href="cliente2.css">
#ELSE IF (cliente == 3)
<link rel="stylesheet" type="text/css" href="cliente3.css">
#ELSE IF (cliente == 4)
<link rel="stylesheet" type="text/css" href="cliente4.css">
.
.
.
#END
<HEAD>
</HTML>
and the other . Vms and . Jsps get the css that was set in that file because they didn’t want to copy all these Ifs for each file in the project. I have the option to use Jquery if necessary, as all pages in this project matter Jquery.
Did Daniel Omine’s answer answer answer your question? If so, mark his answer as the answer. Learn how on tour.
– Dherik