Image resizing by different browsers

Reply

Join Date: Apr 2008
Posts: 12
Reputation: cobberas is an unknown quantity at this point 
Solved Threads: 0
cobberas cobberas is offline Offline
Newbie Poster

Image resizing by different browsers

 
0
  #1
Jun 10th, 2009
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
Last edited by cobberas; Jun 10th, 2009 at 3:57 am. Reason: I forgot to ask a question!
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 302
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz

Re: Image resizing by different browsers

 
0
  #2
Jun 10th, 2009
fit your Image size like this

HTML and CSS Syntax (Toggle Plain Text)
  1. <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
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 12
Reputation: cobberas is an unknown quantity at this point 
Solved Threads: 0
cobberas cobberas is offline Offline
Newbie Poster

Re: Image resizing by different browsers

 
0
  #3
Jun 10th, 2009
Thanks for your efforts Sreekanth, but I'm actually wanting to achieve the exact opposite of what you've suggested - I don't want the the images to fit in all browsers with the same size; I want them to be automatically resized in all browsers.

Cheers
Cos
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Image resizing by different browsers

 
0
  #4
Jun 10th, 2009
That's the opposite of what he wants. He wants it to be smaller when the browser window gets smaller.

Do this:
Style:
HTML and CSS Syntax (Toggle Plain Text)
  1. .imsize1 {width: 50%;}
XHTML Code:
HTML and CSS Syntax (Toggle Plain Text)
  1. <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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC