eBagGuy Posted April 24, 2012 Share Posted April 24, 2012 (edited) How can one change font sizes one a single line using CSS? For example, a p definition is set like: p.big30 { font-size: 30px;font-family:"Comic Sans MS",Arial;font-weight:bold;line-height:85%;margin-top: 4px;margin-bottom: 8px;color: red;} and when I use it, like: <p class="big30">only $3.00 each</p> And the words 'only' and 'each' should be 1/2 half the size of '$3.00'. How can CSS do this? I can do it with the html font tag easily. Edited April 24, 2012 by eBagGuy Link to comment Share on other sites More sharing options...
Ingolme Posted April 24, 2012 Share Posted April 24, 2012 Surround the text that you want larger with <span> tags and apply a different font-size property. Link to comment Share on other sites More sharing options...
eTianbun Posted April 24, 2012 Share Posted April 24, 2012 (edited) Surround the text that you want larger with <span>; tags and apply a different font-size property. EXAMPLE/*CSS*/.big40{font-size:40px}<!--HTML--><span Class="big40">BIG text goes here!</span> Edited April 24, 2012 by eTianbun Link to comment Share on other sites More sharing options...
eBagGuy Posted April 24, 2012 Author Share Posted April 24, 2012 Thank you both! That works for me! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now