1 reply [Last post]
drmacs
Offline
newbie
Last seen: 11 years 23 weeks ago
Timezone: GMT+1
Joined: 2010-02-09
Posts: 1
Points: 2

Hi!
I'm building a website where I want to use this picture(attached) as a background image. My problem is that I always want the black box to be centered in the browser window, what ever screen resolution the viewer is on. So my intension is to use this background and then build divs over it. Does this sound like a good idea for coding or do anyone have a better way to produce this? Can someone please help me getting the code for the background straight?! I would be very pleased!

Thanks!

AttachmentSize
wood_wallpaper_by_nosrepa.gif1.11 MB
CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 6 years 35 weeks ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

I would reconstruct the

I would reconstruct the graphic to not have the black center. Apply the wood background (without black insert) to the body tag. Then just simply place a black container div in the middle.