Forum Moderators: not2easy
I've got this dilema, surrounding header tags. I have a client of mine who wants to change the layout of this text but its in a <h1> tag. However he's being very picky and he wants the 1st letter to be 22px and then the rest 18px and the same goes for the next word. What a pain!
My question is this can I do this within a <h1> tag? Secondly will this affect the optimisation?
e.g. <h1><span class="bigtext">W</span><span class="smalltext">idget</span></h1>
Widget being the keyword.
Thanks
Woldie
<h1 class="myclass">Widget</h1>
and then style it:
.myclass { font-size: smalltextsize; }
.myclass:first-letter { font-size:bigtextsize; }
The first-letter pseudo-class is widely supported by nearly everything post version 4.x's. Good luck!
Is this worth all the effort?
I'll mirror what Nick_W said above, it is not worth the effort or the loss of keeping a primary word whole. Send the boss over here and we'll take care of em'. ;)
P.S. Make sure you reread your replies and there is nothing there to get you in trouble before sending the boss over.