I do not apply style to HTML tag from HTML

0

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.

    
asked by JetLagFox 10.06.2017 в 19:07
source

1 answer

2

When used in the definition of styles, the name of the property is border-left :

<h1 style="border-left: 5px solid #007AFF">Título</h1>
    
answered by 10.06.2017 / 19:09
source