Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Can someone Help with a html color question??  (Read 7487 times)

0 Members and 1 Guest are viewing this topic.

MisssZada

  • Guest
Can someone Help with a html color question??
« on: April 09, 2006, 07:25:53 PM »
Hi there, Im trying to change the font color on a "about me" page on an auction site, and there are a few pieces of text that excaped my commands. My backgroung is black and the font is black, so its quite bothersome. I tried to change all of the font to certain shades of orange so I dont want all the font to be one color, but if I have to...I will. :(

Thanks alot, any help and or suggestions would be wonderful!

Zada

Dilbert

  • Moderator


  • Egghead

  • Welcome to ComputerHope!
  • Thanked: 44
    Re: Can someone Help with a html color question??
    « Reply #1 on: April 09, 2006, 07:29:00 PM »
    Easily. With CSS, anything is possible. Open Notepad, and enter the following:

    p.orange { color: orange; }

    and save it as a CSS file. For this example, I'll call it master.css. In the <head> tags of your HTML, include this line:

    <LINK href="master.css" rel="stylesheet" type="text/css">

    Change "master" to whatever you called the CSS file.

    At the paragraph you want to be orange, change the <p> tag to <p class="orange">. Leave the </p> alone.
    "The geek shall inherit the Earth."

    MisssZada

    • Guest
    Re: Can someone Help with a html color question??
    « Reply #2 on: April 09, 2006, 07:33:19 PM »
    How exactly do I save it as a css file? Should this be an option, or are you saying to call or "name it" it a css file.

    Thanks for your help!  :D

    Dilbert

    • Moderator


    • Egghead

    • Welcome to ComputerHope!
    • Thanked: 44
      Re: Can someone Help with a html color question??
      « Reply #3 on: April 09, 2006, 07:36:05 PM »
      I mean save it with a .css extension. I wrote a brief tutorial here on saving with other extensions than .txt. :)
      « Last Edit: April 09, 2006, 07:36:22 PM by Timothy_Bennett »
      "The geek shall inherit the Earth."

      MisssZada

      • Guest
      Re: Can someone Help with a html color question??
      « Reply #4 on: April 09, 2006, 07:46:49 PM »
      gah, I see what to do, but its still not working. Probably from years of habit of "not being smart."

      Dilbert

      • Moderator


      • Egghead

      • Welcome to ComputerHope!
      • Thanked: 44
        Re: Can someone Help with a html color question??
        « Reply #5 on: April 09, 2006, 07:47:41 PM »
        Which is not working? The saving as .css or the rendering on the page?
        "The geek shall inherit the Earth."

        MisssZada

        • Guest
        Re: Can someone Help with a html color question??
        « Reply #6 on: April 09, 2006, 07:59:44 PM »
        I saved it fine, but it's not showing up on the page.

        Dilbert

        • Moderator


        • Egghead

        • Welcome to ComputerHope!
        • Thanked: 44
          Re: Can someone Help with a html color question??
          « Reply #7 on: April 09, 2006, 08:05:24 PM »
          Don't forget the <link> between the <head> </head> tags, and to modify the needed <p> to say <p class="orange">

          If you did these things, please post the HTML code for the page.
          "The geek shall inherit the Earth."

          MisssZada

          • Guest
          Re: Can someone Help with a html color question??
          « Reply #8 on: April 09, 2006, 08:12:09 PM »
          Im absolutely confused now...

          Dilbert

          • Moderator


          • Egghead

          • Welcome to ComputerHope!
          • Thanked: 44
            Re: Can someone Help with a html color question??
            « Reply #9 on: April 09, 2006, 08:13:19 PM »
            OK. Please copy the HTML code for that page and post it. I'll check it out.
            "The geek shall inherit the Earth."

            MisssZada

            • Guest
            Re: Can someone Help with a html color question??
            « Reply #10 on: April 09, 2006, 08:17:47 PM »
            The actual code is from a generator from Mygen.co

            So Im not seing where to put the <link> Maybe if I just ignore the generating crapola and just do it myself, It will be easier. The generator is only useful when you need a few things done at once...Gah! >.<


            Dilbert

            • Moderator


            • Egghead

            • Welcome to ComputerHope!
            • Thanked: 44
              Re: Can someone Help with a html color question??
              « Reply #11 on: April 09, 2006, 08:21:00 PM »
              Um, yes, that might be it. Manual editing is a little harder, but it's worth it in the end, since it gives much greater power. :)
              "The geek shall inherit the Earth."

              MisssZada

              • Guest
              Re: Can someone Help with a html color question??
              « Reply #12 on: April 09, 2006, 08:27:46 PM »
              Sigh, Really don't even know where to start now... :-/

              Thank you for all your help!!! I really apperciate it!! ;)

              -Zada

              Dilbert

              • Moderator


              • Egghead

              • Welcome to ComputerHope!
              • Thanked: 44
                Re: Can someone Help with a html color question??
                « Reply #13 on: April 09, 2006, 08:47:37 PM »
                Well, if you need to start over (may be a healthy thing for a web design) you can always take a look at HTML tutorials:

                http://www.w3schools.com/html/

                That's the official W3C tutorial set, so it will make sure the code entered is good for most browsers. Take a read-through and feel free to let us know if you have questions/issues.

                -Dilbert
                "The geek shall inherit the Earth."

                Rob Pomeroy



                  Prodigy

                • Systems Architect
                • Thanked: 124
                  • Me
                • Experience: Expert
                • OS: Other
                Re: Can someone Help with a html color question??
                « Reply #14 on: April 10, 2006, 04:09:50 AM »
                If we're instering code into an "About Me" page on an auction site, then there is little chance we'll have access to the HEAD tags.  So instead, the sensible option is to include STYLE tags within the HTML.

                In answer to the above question, this should ideally go at the start of the HTML:
                <***style>
                p.orange
                {
                  color: orange;
                }
                <***/style>

                then, the relevant paragraphs will be like this:
                <p class='orange'>
                  This paragraph is orange.
                </p>


                NB: delete the asterisks (*) in the above example.  They are required in order to bypass this forum's anti-script filter.
                Only able to visit the forums sporadically, sorry.

                Geek & Dummy - honest news, reviews and howtos

                MisssZada

                • Guest
                Re: Can someone Help with a html color question??
                « Reply #15 on: April 10, 2006, 06:38:38 PM »
                Yay! I just fixed it earlier today, but thanks for your help too Robpomeroy! Thats how I fixed it though :)
                « Last Edit: April 10, 2006, 06:39:06 PM by MisssZada »

                Dilbert

                • Moderator


                • Egghead

                • Welcome to ComputerHope!
                • Thanked: 44
                  Re: Can someone Help with a html color question??
                  « Reply #16 on: April 10, 2006, 07:16:23 PM »
                  Glad to hear it's working properly. ;D
                  "The geek shall inherit the Earth."

                  MisssZada

                  • Guest
                  Re: Can someone Help with a html color question??
                  « Reply #17 on: April 10, 2006, 08:52:46 PM »
                  Yeah, its good now! :) I don't really trust generators to begin with, but Im soooo lazy its incredidble recently. Thanks for all the help from you two!  ;)