[personal profile] dhae_knight_1 posting in [community profile] style_system
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?

Date: 2012-01-07 04:03 pm (UTC)
stormy: βͺ ππŽπ“πˆπ‚π„ ❫ 𝑫𝑢 𝑡𝑢𝑻 𝑻𝑨𝑲𝑬 𝑴𝒀 𝑰π‘ͺ𝑢𝑡𝑺 ⊘ (Default)
From: [personal profile] stormy
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}

Date: 2012-01-07 05:04 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
You need to add this to your custom CSS:


body {
background-attachment: fixed;
}

Profile

Dreamwidth style system discussion

July 2025

S M T W T F S
  123 45
6789101112
13141516171819
20212223242526
2728293031  

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 12th, 2025 11:32 am
Powered by Dreamwidth Studios