Results 1 to 5 of 5

Thread: bg question

  1. #1
    Join Date
    Jun 2005
    Posts
    40
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default bg question

    Hi,

    This is my template that im working on now: http://www.md9-studio.com/clients/ea/

    the background starts from a solid black color and then fades into my background colors. My question is if someone is using a resolution were the background might repeat, such as 1280x960, how can i make the repeated background just be black color.

    what im trying to say is how long the page becomes the rest of the background will be just black and the image i have will not keep repeating...

    thanks in advance.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I'm not sure which directory has the site...I'm thinking "2" as the 1 has a .jpg positioned on the page.

    Anway, there is a simple way to do this. Use the following css

    body {
    background-color:#000;
    background-image: url("bg.jpg")
    backgroung-positon: top center;
    }

    This will show the background centered in the page with everything else black around it.

    Also, glad to see that you got the "plates" section working with the tween and dynamic text.

    Cheers!

  3. #3
    Join Date
    Jun 2005
    Posts
    40
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    thanks a lot bro, ur a life saver, ill try it n get back to u =D

  4. #4
    Join Date
    Jun 2005
    Posts
    40
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    were exactly do i put this in the code?

    head or body?

    i tried in both but doesnt work...

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    but it in the header between <style> tags

    like this:

    Code:
    <head>
    
    <style type="text/css">
    body {
    background-color:#000;
    background-image: url("bg.jpg")
    backgroung-positon: top center;
    }
    
    </style>
    </head>

Bookmarks

Posting Permissions

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