NLT Posted October 4, 2011 Share Posted October 4, 2011 Hi, If I had this for instance: hhead { font-family: Verdana; font-size: 20; } and wanted it in a certain color, how would I go about it? Is there something I could do like <hhead color="green">Hello!</hhead> Quote Link to comment https://forums.phpfreaks.com/topic/248418-css-help/ Share on other sites More sharing options...
Frank P Posted October 6, 2011 Share Posted October 6, 2011 Hello NLT, In that short code snippet you're already making three mistakes. Four if I would count the probably missing doctype as well. I would advise you to start with a decent beginners course in HTML and CSS, which can be done for free at http://w3schools.com (more of a step-by-step course, but they cover just about everything) or http://htmldog.com (more of a limited crash course). Let us know how this works out please. Quote Link to comment https://forums.phpfreaks.com/topic/248418-css-help/#findComment-1276393 Share on other sites More sharing options...
AyKay47 Posted October 6, 2011 Share Posted October 6, 2011 Hi, If I had this for instance: hhead { font-family: Verdana; font-size: 20; } and wanted it in a certain color, how would I go about it? Is there something I could do like <hhead color="green">Hello!</hhead> if you set a standard CSS style for a certain tag, to change an individual tag in that group, you wil either need to use the "style" attribute.. or another attribute like you used "color" to overwrite the group styling.. you can also set another class for the individual tag and use "!important" to override.. however in your case I do not recommend the latter of the suggestions.. Quote Link to comment https://forums.phpfreaks.com/topic/248418-css-help/#findComment-1276445 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.