Jump to content

Can I add an inline style to a class that is defined in my style sheet?


HumbleApprentice

Recommended Posts

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 by HumbleApprentice
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...