Code for White Text on Black Background plz

Discussion in 'Web Design & Programming' started by Dwarfer, Jan 30, 2007.

  1. Dwarfer

    Dwarfer Guest

    Hi I don't have any special knowledge about webpage coding but i have some downloaded pages I wish to alter. All I want to do is change the text from black to white, also the background from white to black.

    I suppose this is easy with just 2 single codes, like "BkColor=01" or something like that.
    FYI: Most pages are from Wikipedia.org and are in mhtml format (mobile web) which uses the same code as normal pcs

    Could you please please please help me out on how I can change the colours.

    Thanks very much
     
  2. Karanislove

    Karanislove It's D Grav80 Of Luv

    Likes Received:
    0
    Trophy Points:
    36
  3. Matt555

    Matt555 iMod

    Likes Received:
    98
    Trophy Points:
    48
    You can apply the styles in CSS via an internal or external stylesheet or style them using styles in the tags, the best way is via an external stylesheet but below is the CSS code to style it in an externally linked stylesheet (place this in the stylesheet)


    Code:
    body {
         background-color: #000000; /* Sets the background colour */
         color: #FFFFFF; /* Sets the text colour */
    }
    
     
  4. Dwarfer

    Dwarfer Guest

    thanks guys works great
     
  5. geek9pm

    geek9pm Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    Hi, I have been doing pages for years and do not do HTML directly unless I hae to. Anyway, here is a link to a simple page with black background and white text and not mcuh of anything else.
    http://geek9pm.com/about_us.htm
    In your browser select view source and you will see the codes for background and font color.
     

Share This Page