dhae_knight_1: My kitten Zasha (Default)
Dhae Knight ([personal profile] dhae_knight_1) wrote in [community profile] style_system2012-01-07 04:54 pm
Entry tags:

Non-scrolling background image *and* a header?

I really, really like the layout I have now, with one tiny little problem; I would really like to fix my background image so it didn't scroll and repeat, because, frankly, it sucks at tiling height-wise.

I found this: http://style-system.dreamwidth.org/22713.html, which unfortunately removes my header, but I can't find anything else.

Is it even possible? Or do I need to get creative and smush both background and header together into one massive picture and then make that one fixed?

stormy: βͺ ππŽπ“πˆπ‚π„ ❫ 𝑫𝑢 𝑡𝑢𝑻 𝑻𝑨𝑲𝑬 𝑴𝒀 𝑰π‘ͺ𝑢𝑡𝑺 ⊘ (Default)

[personal profile] stormy 2012-01-07 04:03 pm (UTC)(link)
Take the wood background image, and add it to the css like this, changing URLOFIMAGE to the URL of your background uploaded somewhere on the internet. I took the liberty of looking at your photobucket to grab the url I thought it was.

body {background: url(URLOFIMAGE) fixed}

or

body {background: url(http://i733.photobucket.com/albums/ww337/dhaeknight/WoodenHedge.jpg) fixed}

Now, if you're absolutely sure you don't want it to repeat at all, you can do the following, but this would literally show the image once on the page, or you can change no-repeat to repeat-x or repeat-y based on the axis you would like it to repeat itself. Fixed should solve the overall problem alone, though. It won't move on the page at all.

body {background: url(URLOFIMAGE) fixed no-repeat}
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2012-01-07 05:04 pm (UTC)(link)
You need to add this to your custom CSS:


body {
background-attachment: fixed;
}