Log In · Register

 
scrollbox help ?
Yuniechan
post Jul 3 2008, 02:20 PM
Post #1


Senior Member
***

Group: Member
Posts: 84
Joined: Mar 2007
Member No: 511,742



this is the code im using and i am wondering how to make the bg image stay the same size and still stay fixed. when i had the background fixed code it wont stay centered
CODE
<div style="width:250px;height:280px;overflow:auto;border-width:1px;background-image:url(http://a157.ac-images.myspacecdn.com/images01/119/l_96b42d9d787a065e9e3dd1ab4967f61c.jpg);border-color:gray;border-style:solid;body{scrollbar-face-color:aliceblue}">
</center>
 
 
Start new topic
Replies
fixtatik
post Jul 3 2008, 07:19 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



first of all, take out body{scrollbar-face-color:aliceblue} as you can't embed a body style within a div.

as for your background, instead of using background-image:url(IMAGE);, try using background:url(IMAGE) center center fixed;. it's a shorthand way of doing the same thing. you can change "center center" to whatever you want of course.
 

Posts in this topic
Yuniechan   scrollbox help ?   Jul 3 2008, 02:20 PM
fixtatik   first of all, take out body{scrollbar-face-color:a...   Jul 3 2008, 07:19 PM


Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: