Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6

Thread:
?
		

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    4
    Member #
    5072
    Hey, i'm pretty new at all of this web designing stuff, so i'd appreciate some help. I tried using the <pre> tags on my page. First of all, I linked my page to a css page called Main.css. Basically, I want the body background to be black. I defined Body in my css page already, and I know that my linking works because the text in my page is the right color defined in my main css page. But for some reason, the background won't show up black. I'm aware that I could just use a regular html tag <body background="black"> but i'd rather link all of my pages to the main css file in case i want to change the color schemes. any clue why it isn't working? is it because of the <pre> tag?

    Thanks...sorry if this is a stupid question or something, i'm kind of new at this. I just learned css a few days ago.

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Code:
    body, html
    {
        background-color:black;
    }
    
    pre
    {
        background-color:whatever you want;
    Always remember to specify a foreground color also when specifying a background color or image!
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    4
    Member #
    5072
    hey, thanks! I really appreciate your help.

    *edit* Kay, I tried it and it works. Once again, thanks for your help!

  5. #4
    Senior Member tekp's Avatar
    Join Date
    Jan 2004
    Location
    A small village near a small city near a small cit
    Posts
    918
    Member #
    4667
    Liked
    1 times
    what does the <pre> tag do?
    tekp :cheeky: tekponline.com

  6. #5
    Junior Member
    Join Date
    Feb 2004
    Posts
    4
    Member #
    5072
    Pre is short for Preformatted Text. the <pre> tag prints out the text EXACTLY how it is typed between the <pre> tags.

  7. #6
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Originally posted by NchantD
    Pre is short for Preformatted Text. the <pre> tag prints out the text EXACTLY how it is typed between the <pre> tags.
    ...in terms of whitespace. It will still parse HTML.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:18 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com