HTML:
<div class="header2"> <div class="words"> <span style="color:#be2f37;">service</span> <span style="color:#fff;">education</span> <span style="color:#00529b;">progress.</span> </div> </div>
CSS:
.header2 {
height: 250px;
background: #87d8e9;
}
.words {
display: inline;
}
.words span {
font-size: 48px;
}
and how it turns out:

(the words are supposed to be centered in the blue box)
Now, I have tried the text-align: center; with no change, i have also tried the display: inline with top & bottom set at 50% and display: cell and display: table-cell. Any ideas? I've been at this for 3 hours and i'm stumped.
Thanks!
This post has been edited by chrtr: 12 July 2011 - 10:14 PM

New Topic/Question
Reply



MultiQuote





|