HumbleApprentice Posted February 18, 2014 Share Posted February 18, 2014 (edited) Hi Guys, Could you please help me out with this one. I have a style sheet that manipulate certain elements on my page. I would however like to know if I could style a portion of a paragraph with the inline style method. The code on my webpage is as follows: <p class ="two">Hello World - CSS allows you to modify margin, paddings and borders.</p> I would like to apply and inline style that only affects the word "CSS" want to change the font and the color but it does not work. example: <p class="two">Hello Word <style = "color:white; font-bold:,>CSS</style> allows you to modify margins, paddings, and borders.</p> This does not seems to work. Can someone please help me with the proper code? Please see attach file to look at the CSS code. I am new to this and would appreciate all the help. Thanks. Thanks so much Foxy Mod - span style works perfectly. colors.css Edited February 18, 2014 by HumbleApprentice Link to comment Share on other sites More sharing options...
Ingolme Posted February 18, 2014 Share Posted February 18, 2014 Use a <span> element <p class="two">Hello Word <span style="color:white; font-weight: bold;">CSS</span> allows you to modify margins, paddings, and borders.</p> 1 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