This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Background image is not in proper way for different resolution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Background image is not in proper way for different resolution" Watch "Background image is not in proper way for different resolution" New topic
Author

Background image is not in proper way for different resolution

Dipesh Kumar Kumar
Greenhorn

Joined: Jun 06, 2012
Posts: 3
I have a background image in body.
What i want to achive is that
1)- calculate the visitor screen resolution.
2)- based on that resolution i want to resize my background image.

Can anyone help?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
CSS3 media queries are what you are after.

Eric
 
 
subject: Background image is not in proper way for different resolution
 
It's not a secret anymore!