wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 15376
    
    6
CSS3 media queries are what you are after.

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Background image is not in proper way for different resolution
 
Similar Threads
Background image in different resolution
Search within image for static portion
Resolution Problem for Background images
Image file splitting
How to create image from array of pixels?