|
| |
|
|
DaveX
Posts: 217 Joined: 5/4/2004 Status: offline
|
Font-size question - 8/3/2008 1:18:54
I think I may be over-thinking this but I have a one-line sentence where I need the first word to be a different font size. Would it be easier to just change it inline or do it via a stylesheet. I've tried a few things and the I usually get the result I want except that the first word always ends up one line above the rest of the sentence like this: Hi, Blah, blah, blah, blah. I want it to look like this: Hi, Blah, blah, blah, blah.
|
|
|
|
d a v e
Posts: 4168 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Font-size question - 8/3/2008 1:57:10
make a class in your external stylesheet like .bigfirst {font-size:150%;} then wrap it around the first word like <p> <span class="bigfirst">Hi<span>, blah, blah, blah, blah, </p> depending on what editor you're using (i.e. WYSIWIG) you can simply highlight the first word and apply the class to it.
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|