Reputation: 187
I have the below code that's part of a php script. The
brackets work correctly i.e if I change it to h1 heading it shows heading 1 but when I try to use a class for style it does not. What am I doing wrong?
<p class="indexletters">-<a name="'.substr($row['name'],0,1).'">'.substr
($row['name'],0,1).'-</p>
And this is the css
p.indexletters {
color:#00A383;letter-spacing:1px;font-family: PosterBodoni; font-size:
50px; margin: 0;
padding: 0;
border: 0;
outline: 0;"
Thank you
Upvotes: 0
Views: 3589
Reputation: 18891
You're ending with "
CSS should look like this:
p.indexletters{
color:#00A383;
letter-spacing:1px;
font-family: PosterBodoni;
font-size: 50px;
margin: 0;
padding: 0;
border: 0;
outline: 0;
}
Upvotes: 3