:first-child et boostrap

Par just me, il y a 11 ans


Les bases HTML/CSS

Bonjour à tous!

Je me mets au bootstrap et j'ai un petit soucis avec mon :first-child

En fait il n'est pas pris en compte

Voici le code :

#header-gauche p:first-child{ color:#505050; font-weight:bold; font-size:24px; margin-bottom:0px; margin-top:0px; }

`puis

<section class="col-xs-12 col-sm-9 col-md-9 col-lg-3 col-lg-offset-2" id="header_gauche"> <p>COMPOSITION</p> <p>Free PSD Webside template</p> </section>

Le CSS pour "COMPOSITION" n'est pas pris en compte...

Avez vous une idée?

Merci ;)

3 réponses

Huggy, il y a 11 ans

header-gauche ou header_gauche, tu choisis

just me, il y a 11 ans

aaaaaaaaaaaaahhhhhhhhhhhhhh
mais à force de bosser j'ai plus les idées claires :/

je vais faire une pause ;)

merci!

Amstramgram, il y a 11 ans

Attention dans ton CSS c'est un tiret ( header-gauche ) et dans ton HTML c'est un underscore ( header_gauche ). ;)