color for the text in a css

Discussion in 'HTML' started by cdt_sylvestre, Dec 11, 2004.

  1. hi
    i m trying to figure how i can give a color to a 'normal' text (no <P>,
    ....)

    i tried
    html,body {
    background-color : #6363a9;
    color=#FFFFFF;
    }

    but that doesn t work

    thx
     
    cdt_sylvestre, Dec 11, 2004
    #1
    1. Advertising

  2. On Sat, 11 Dec 2004 10:28:49 +0100, cdt_sylvestre
    <> wrote:

    > hi
    > i m trying to figure how i can give a color to a 'normal' text (no <P>,
    > ...)
    >
    > i tried
    > html,body {
    > background-color : #6363a9;
    > color=#FFFFFF;
    > }
    >
    > but that doesn t work
    >


    It shouldn't. You used a '=' that should have been a ':'

    html, body {
    background-color:#6363a9;
    color:#FFFFFF; }

    When switching from using html attributes in the markup of the page itself
    to stylesheets, the notation can be a bit confusing , since you are used
    to one thing and now have to use another.
    Try validate your stylesheets at <http://jigsaw.w3.org/css-validator/> for
    that validator will notify you of stuff like using '=' instead of ':'.


    --
    Weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html>
    Webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
    Zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>
     
    Barbara de Zoete, Dec 11, 2004
    #2
    1. Advertising

  3. yep, thanx a lot
    "Barbara de Zoete" <> a écrit dans le message de
    news:eek:psit72tlgx5vgts@zoete_b...
    > On Sat, 11 Dec 2004 10:28:49 +0100, cdt_sylvestre
    > <> wrote:
    >
    > > hi
    > > i m trying to figure how i can give a color to a 'normal' text (no <P>,
    > > ...)
    > >
    > > i tried
    > > html,body {
    > > background-color : #6363a9;
    > > color=#FFFFFF;
    > > }
    > >
    > > but that doesn t work
    > >

    >
    > It shouldn't. You used a '=' that should have been a ':'
    >
    > html, body {
    > background-color:#6363a9;
    > color:#FFFFFF; }
    >
    > When switching from using html attributes in the markup of the page itself
    > to stylesheets, the notation can be a bit confusing , since you are used
    > to one thing and now have to use another.
    > Try validate your stylesheets at <http://jigsaw.w3.org/css-validator/> for
    > that validator will notify you of stuff like using '=' instead of ':'.
    >
    >
    > --
    > Weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html>
    > Webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
    > Zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>
     
    cdt_sylvestre, Dec 11, 2004
    #3
  4. In article <41babdc3$0$11935$>, cdt_sylvestre
    () dropped a +5 bundle of words...

    > hi
    > i m trying to figure how i can give a color to a 'normal' text (no <P>,
    > ...)
    >
    > i tried
    > html,body {
    > background-color : #6363a9;
    > color:#FFFFFF;
    > }
    >


    fixed (should be, anyway)

    --
    Starshine Moonbeam
    mhm31x9 Smeeter#29 WSD#30
    sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
     
    Starshine Moonbeam, Dec 11, 2004
    #4
  5. cdt_sylvestre

    SpaceGirl Guest

    cdt_sylvestre wrote:
    > hi
    > i m trying to figure how i can give a color to a 'normal' text (no <P>,
    > ...)
    >
    > i tried
    > html,body {
    > background-color : #6363a9;
    > color=#FFFFFF;
    > }
    >
    > but that doesn t work
    >
    > thx
    >
    >


    a tip is to always VALIDATE your code, whether it is CSS or HTML. You
    can find validators (which will test your code to see if it is right) at
    http://www.w3.org


    Really you should check there first as this mistakes are really easy to
    make, and very annoying!


    --


    x theSpaceGirl (miranda)

    # lead designer @ http://www.dhnewmedia.com #
    # remove NO SPAM to email, or use form on website #
     
    SpaceGirl, Dec 12, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. moondaddy
    Replies:
    3
    Views:
    38,367
    moondaddy
    Apr 28, 2004
  2. Matt Adams
    Replies:
    0
    Views:
    893
    Matt Adams
    Aug 26, 2003
  3. Noozer
    Replies:
    2
    Views:
    6,414
    Noozer
    Sep 26, 2004
  4. Kamaljeet Saini
    Replies:
    0
    Views:
    434
    Kamaljeet Saini
    Feb 13, 2009
  5. Replies:
    7
    Views:
    380
    Mick White
    Feb 2, 2005
Loading...

Share This Page