The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › HELP!!! sliding background image
I am trying to accomplish the same effect as this background but don’t know how to get it done. The background slides with page and scroll bars dont appear until the content area width is reached.
Can someone help me.
nevermind i found it…
but if anybody has a more effective way please let me know.
Not really regarding your probelm per say, but a more effective way to write that with css short hand –
background: #000 url(../images/bg.jpg) no-repeat fixed;
bg position is defaulted to 0 on the y-axis (top) so you don’t have to specify it.
More info on shorthand: css tricks video on short hand css.