|
|
 |
Re: FN-FORUM: css positioning question
date posted 20th August 2004 15:44
How about using alternate style sheets, thus:
style1.css would set up the bg image for 1024x768 or more, and
style2.css for 800x600.
Then select the appropriate stylesheet with a bit of javascript in the
head:
//---- Set to alternative stylesheet if < 1024x768
if (screen.width < 1000) {
setActiveStyleSheet("lores");
}
- Chris
In message [EMAIL REMOVED] Dan Cook
[EMAIL REMOVED] writes
>
>I'm using the following to attach an image to the top right of a page. At
>1024x768 and higher I want it to be in the top right, but at 800x600 and
>lower, I want it to stay where it was at the higher res. I hope this makes
>some kind of sense?!? Is it possible? Any takers?
>
>body{
> background: White url(images/navigation/top_right_image.jpg) no-repeat
>fixed right top;
>}
>
|
 |
|