Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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