Forum Moderators: not2easy

Message Too Old, No Replies

CSS & Background Static Scroll Problem

Cannot make a static background with scroll

         

alcheme

8:24 am on Mar 5, 2004 (gmt 0)

10+ Year Member



Hello, this obviously has been covered but it is not working for me. I am trying to do two things in DREAMWEAVER MX 2004:

Page 1:

A static background-no repeat that won't move when the page is scrolled. I defined an image as a background in CSS url(picture.jpg) or url(../images/pic.gif) but it does not work. No picture appears or an Error comes up that says:"can't find a valid editor for this file extension."

Page 2:

Table with content and its own background image with a static page background.

Same as above. Neither works.

Does anyone have a suggestion?

Smad

2:23 pm on Mar 5, 2004 (gmt 0)

10+ Year Member



try this
body {
background-attachment: fixed;
background-image: url(images/image.jpg);
background-repeat: no-repeat;
}

alcheme

4:19 pm on Mar 5, 2004 (gmt 0)

10+ Year Member



Thank you SMAD.

I tried what you did but at first nothing would appear untill I defined the background in 'page properties' first and then use the CSS editor to change the background features. Here is the CSS code that worked for me:

Step 1:

Page Properties > Background image > graphics/back3.gif

Step 2:

New Style Sheet >

body {
background-image: url(graphics/back3.gif);
background-attachment: fixed;
background-repeat: repeat-x;
background-position: left top;
background-color: #999999;
}

Step 3:

Voila!

~Shane

thorne

4:43 pm on Mar 5, 2004 (gmt 0)

10+ Year Member



Your first problem is that your using Dreamweaver, code it by hand, its much easier.

alcheme

2:09 am on Mar 6, 2004 (gmt 0)

10+ Year Member



That is sort of true, but using programs like DWMX is a good way to develop the basics and then some. Learning to tweak with hand coding is for learning later down the road. At least it isn't FP I am using.

~Shane