CSS class not affecting alignment or size.
-
This is such a minor problem it’s so frustrating that I can’t figure it out. I’ve made a CSS class for my image captions; I want them a smaller font size, aligned to the right, and in italics. But the class seems to only apply italics, not the size or alignment. This is the post in question.
I just know I’m gunna be told it’s something ridiculously simple.
This is my html:
<p><img src="/2010/blog/universaltype.jpg" class="pull-2" /><br /> <span class="caption">(images from Pentagram)</span></p>
And my CSS:
body {background-color:#fffff; color:#516064; margin:0; padding:0; text-align:center; font-size:75%; font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;} p {font-size:1.167em; line-height:1.5em; margin:0 0 1.5em;} span.caption {font-style:italic; text-style:italic; text-align:right;}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘CSS class not affecting alignment or size.’ is closed to new replies.