Previous Message
Next Message

A <div> as background

Sent by Bob Easton on 4 January 2005 12:12


ZEFXIS - Nick Mavros wrote:
> I have a 775px page width and I want to place an image as background. 
> But I want this image to appear only if the screen is above 800*600. If 
> it is 800*600 I don't want it to appear. In other words I want to it be 
> placed out of the page, at 850px.
> Is there a way to do it?
> 
  Nick,
Please ask new questions by starting with a new piece of email and 
sending it to [EMAIL-REMOVED].

Your current practice is responding to already posted messages.  This 
causes your questions to be threaded in with previous conversations. 
Your questions are then hiddn from view as new threads.

As for this particular question, CSS has no capability of detecting a 
user's window size.  So, the answer is not a pure CSS question.  One 
could use JavaScrip to detect the window size and then dynamically write 
the code to display or hide the image.

-- 
Bob Easton
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: