RyanSchurton Posted December 6, 2012 Share Posted December 6, 2012 (edited) I am trying to change the style of one word inside of a whole bunch of words that are all inside of <P></P> tags. Here is an example of what i am trying to do <p>I go to the mall.i drive fast cars, i get a lot of money. and I travel all around the world.</p> I want to change the color of (i get a lot of money). give it a background color and a border. Edited December 6, 2012 by RyanSchurton Link to comment Share on other sites More sharing options...
dsonesuk Posted December 6, 2012 Share Posted December 6, 2012 use span <p>I go to the mall.i drive fast cars, <span class="highlight1">i get a lot of money</span>. and I travel all around the world.</p> .highlight1 { background-color: red; border: 2px solid lime; color: #FFFFFF; padding: 0 6px;} Link to comment Share on other sites More sharing options...
wacsyweezy Posted December 20, 2012 Share Posted December 20, 2012 That's all you need to do 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