Jump to content

CSS help


NLT

Recommended Posts

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.   

Link to comment
https://forums.phpfreaks.com/topic/248418-css-help/#findComment-1276393
Share on other sites

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..

Link to comment
https://forums.phpfreaks.com/topic/248418-css-help/#findComment-1276445
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.