Forum Moderators: open
The page I'm building's content has exceeded the size of its background image. (btw, my screen resolution is set to 1024x768)
I know there is a code of some sort one can write that makes the content scroll up/down while the bg image stays in place.
I'm not sure if it's CSS or HTML... Or, for that matter, just what it is...
Anyone know what I mean?
Thanks. :)
makes the content scroll up/down while the bg image stays in place
Welcome to the forums, SimbaGirl.
I think you're looking for background-attachement:fixed
Inline
<body style="background:url(your image url here);background-attachment:fixed;">
External
body {
background:url(your image url here);
background-attachment:fixed;
}
Well, I put in the code and it brought me to a familiar problem; it wiped out my page. (Same thing happens when I try to insert an IMG code for an image) This has happened before. And I haven't been able to make CSS work for my background image because of that. Instead, I've been using this HTML code:
</STYLE>
<body background="TheLog.jpg">
</style>
I should be able to use that CSS. I know I must be doing something terribly wrong...I'm confused.
W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]
Also, background-attachment:fixed is not supported on older browers - which browser and operating system are you using?