|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
css: background repeat = none?
I am looking for a way to keep a css background picture in one absolute position. When I scroll down the page I need the picture to stay in that one place. Does anybody know what attributes I would need to put in this css to make that happen? Thanks in advance.
.logo { background: url(images/logo.jpg); background-repeat: no-repeat; background-attachment: fixed; position:absolute;left:10px;top:10px; } |
|
#2
|
|||
|
|||
|
if it is the background image for a page then you need to assign it to the body
body { background-attachment: fixed; background-image: url(images/logo.jpg); background-repeat: no-repeat; } |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css: background repeat = none? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|