Log in

View Full Version : bg question



mossawi
05-30-2007, 12:32 PM
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.

Medyman
05-30-2007, 04:11 PM
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!

mossawi
05-30-2007, 08:49 PM
thanks a lot bro, ur a life saver, ill try it n get back to u =D

mossawi
05-30-2007, 08:56 PM
were exactly do i put this in the code?

head or body?

i tried in both but doesnt work...

Medyman
06-01-2007, 03:45 AM
but it in the header between <style> tags

like this:


<head>

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

</style>
</head>