I have a stripe up the side of my website which uses
body {
background: black url("sidestripe.jpg") repeat-y;
}
Is there anyway to make it so that the stripe does not scroll with the rest of the page? I'm hoping it can just be done by a quick one line of code or something.Yes background-position:fixed but it only works in standards compliant browsers so no IE but i think there may be a work-around for IE or maybe a tad javascript.I'll have a shifty around. Cheers Originally posted by sharkey
Yes background-position:fixed but it only works in standards compliant browsers so no IE but i think there may be a work-around for IE or maybe a tad javascript.
Works for me in IE using a "strict" doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">Are you sure nog dog im quite sure that IE has never supported it maybe im wrong though.
body {
background: black url("sidestripe.jpg") repeat-y;
}
Is there anyway to make it so that the stripe does not scroll with the rest of the page? I'm hoping it can just be done by a quick one line of code or something.Yes background-position:fixed but it only works in standards compliant browsers so no IE but i think there may be a work-around for IE or maybe a tad javascript.I'll have a shifty around. Cheers Originally posted by sharkey
Yes background-position:fixed but it only works in standards compliant browsers so no IE but i think there may be a work-around for IE or maybe a tad javascript.
Works for me in IE using a "strict" doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">Are you sure nog dog im quite sure that IE has never supported it maybe im wrong though.