| | |
Image resizing by different browsers
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 12
Reputation:
Solved Threads: 0
Hi all
I'm getting different image resizing by different browsers when I resize the browser window: with Mozilla the images (photos) resize with the window size and all is good; with IE7 the images remain the same size regardless of window size, so they end up way too big in a smaller window and cramp out the text.
I've tried checking "Enable Automatic Image Resizing" under Tools-Internet Options-Multimedia but it made no difference.
The pages I'm having trouble with are:
http://ceps.anu.edu.au/research_proj...ship/index.php
and
http://ceps.anu.edu.au/research_proj..._obs_wshop.php
How do I make the images resize automatically with IE7 like they do with Mozilla?
Thanks in advance
Cos
I'm getting different image resizing by different browsers when I resize the browser window: with Mozilla the images (photos) resize with the window size and all is good; with IE7 the images remain the same size regardless of window size, so they end up way too big in a smaller window and cramp out the text.
I've tried checking "Enable Automatic Image Resizing" under Tools-Internet Options-Multimedia but it made no difference.
The pages I'm having trouble with are:
http://ceps.anu.edu.au/research_proj...ship/index.php
and
http://ceps.anu.edu.au/research_proj..._obs_wshop.php
How do I make the images resize automatically with IE7 like they do with Mozilla?
Thanks in advance
Cos
Last edited by cobberas; Jun 10th, 2009 at 3:57 am. Reason: I forgot to ask a question!
fit your Image size like this
now it fit in all browsers with same size
HTML and CSS Syntax (Toggle Plain Text)
<img src="your image path" height="size in pixels" width="size in pixels" />
now it fit in all browsers with same size
Thanx,
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
That's the opposite of what he wants. He wants it to be smaller when the browser window gets smaller.
Do this:
Style:
XHTML Code:
Set the percentage to the size you really want, as a percentage of the containing tag size.
The image resizes proportionally in both IE and FF, keeping the same aspect ratio. I tested it on IE7 and FF3.
Do this:
Style:
HTML and CSS Syntax (Toggle Plain Text)
.imsize1 {width: 50%;}
HTML and CSS Syntax (Toggle Plain Text)
<img src="mypicture.jpg" class="imsize1" alt="my image" />
Set the percentage to the size you really want, as a percentage of the containing tag size.
The image resizes proportionally in both IE and FF, keeping the same aspect ratio. I tested it on IE7 and FF3.
Last edited by MidiMagic; Jun 10th, 2009 at 8:59 pm. Reason: spellch
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- Image resizing and uploading (PHP)
- Dynamic Image Resizing (ColdFusion)
- css loaded image doesn't show up in browser (HTML and CSS)
- Uploading and resizing images (PHP)
- minimizing the size of an image (Java)
- Auto Image Resize and create thumbs (JavaScript / DHTML / AJAX)
- Image Resolution (PHP)
- Image appears on some browsers, doesn't on others (HTML and CSS)
- auto image resizing (Mac tips 'n' tweaks)
Other Threads in the HTML and CSS Forum
- Previous Thread: Converting Excel Spreadsheets to HTML for Mac
- Next Thread: Google Ads and Google SEO
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






