I am trying to modify the styles from the HTML tag if the user has logged in. I use it a lot on the web and it does not give me problems, but in this case I do not get them to apply:
<h1 <?php if($user != "null") { echo "style='borderLeft: 5px solid #" . $usuario_color['color_principal'] . "'";} ?>>Título</h1>
The code that generates me is the following:
<h1 style="borderLeft: 5px solid #007AFF">Título</h1>
I can not find the fault, I have also tried adding ;
to the end of the color code, but it does not work either.