Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Posts
    216
    Thanks
    9
    Thanked 0 Times in 0 Posts

    webpage backgrounds

    Hello,

    i know you can define a background using:

    Code:
    <html>
    <body bgcolor='hexcode'>
    </body>
    </html>
    but it looks naff. How would i create a background such as at this link:

    http://www.coffeecup.com/color-schemer/

    It isnt an image, i am wondering how this is done?

    thanks

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by alex57 View Post
    How would i create a background such as at this link:

    http://www.coffeecup.com/color-schemer/

    It isnt an image, i am wondering how this is done?
    You know that you can view the source, right?

    Actually they are using are background image:
    Code:
    body {
       margin:0;
       padding:9px 0;
       text-align:center;
       background:#fff url('/images/background.png') repeat-x;
       font-size:12px;
       font-family:verdana,arial,monaco,sans-serif;
    }
    And the background image: http://www.coffeecup.com/images/background.png

  • #3
    Regular Coder
    Join Date
    Sep 2006
    Posts
    216
    Thanks
    9
    Thanked 0 Times in 0 Posts
    ah, i see. Surely it would take longer to load that repeated image. Thanks for the insight though

  • #4
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    The image only needs to be downloaded once, and the Browser does the repeating of the image. Saves your bandwidth and the page rendering time.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Small

    It's about 2.4k; that's not very big...
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •