This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes adjusting image size according to the browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "adjusting image size according to the browser" Watch "adjusting image size according to the browser" New topic
Author

adjusting image size according to the browser

sumedha rao
Ranch Hand

Joined: Nov 26, 2010
Posts: 115

Hello Ranchers,is there a way in html where i can write some code to adjust the background image size according to the browser in which it is viewed???


scjp1.6,scwcd1.5!!!
Ryan Christiani
Ranch Hand

Joined: May 15, 2011
Posts: 30
Look into Media Queries try this article you can set specific rules for specific screen sizes, i don't know to much on the subject, but that seems to be were you want to get to.


Probably going to ask a lot of possibly stupid questions...but how else will I learn? am I right!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: adjusting image size according to the browser
 
Similar Threads
Display IMG from Blob database field ?
how to get image from java to j2me
Images too big
Displaying thumb nail image
JFrame Image