HTML & CSS
i've got a page i'm restyling. its got a central div (width 1150px) that sits within the body element. the body element has the usual "text align: center" rule so it remains in the center of the page as you enlarge / shrink the browser window. (well, unless you shrink the page less than 1150px, in which case it stays butted up to the left side).
if u're not sure of this behaviour see the site i'm restyling. note how the white bit moves as you alter the size of the browser window. well all i want is to have a faded gradient on the OUTSIDE of this central div (but for the way the central div moves - as you change the size of the browser window - to remain exactly the same)
the way i want the site to eventually look is as follows
i've tried adding an extra div (around the centre one) with enough padding so i can see the faded gradients. but this just stops the center div moving at all. i'm stumped
Can't you just give the <body> the gradient background-image?
If that doesn't work, can you post the CSS that you used when you tried with an extra <div>? I had to do something similar (I think) with this site, and I ended up using an extra <div> for it.
cheers dude with the strange name. i managed to get it working by doing just that
[ & yes, the site u did is an example of the same effect ]
This topic is now closed. New replies are no longer allowed.