Dreamweaver - Fixed Website Background?


P

pimpsqueak

Junior Member
#1
Hey, sorry if this is in the wrong section but... how can i make a web page where the background stays stationary, but a middle section with all the text and stuff scrolls down while keeping the background stationary?
im using Macromedia Dreamweaver 8, and Thanks in advance.:confused:
 
Alex L

Alex L

Senior Member
#2
In your css file, add this line:

Code:
background-attachment: fixed;
under your background.
 
glenwheeler

glenwheeler

Senior Member
#4
why not just background: url (images/whatever.jpg)

Never see attachments used alot these days as everything should be built inside a container etc. It's not really a good idea for text to be scrolling over funny images.

Also Alex how did you see this guys stylesheet he hasnt posted a link :/
 
Alex L

Alex L

Senior Member
#7
why not just background: url (images/whatever.jpg)

Never see attachments used alot these days as everything should be built inside a container etc. It's not really a good idea for text to be scrolling over funny images.
It was the only way for me quickly give a solution.

Also Alex how did you see this guys stylesheet he hasnt posted a link :/
Just a guess.
 
Top