Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
IE 6 image distortion height:auto
Old 01-30-2008, 10:40 PM IE 6 image distortion height:auto
Skilled Talker

Posts: 52
Name: Bruce
Trades: 0
Is there anyway to get IE 6 to display images properly using a percent on width and auto on height?

In IE 6 the images width, which I have set as a percentage, always displays correctly, but the height, which is on auto, does not.

The images will sometimes be squished vertically.

Last edited by SillyWilly; 01-31-2008 at 12:09 AM..
SillyWilly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-31-2008, 08:04 AM Re: IE 6 image distortion height:auto
Novice Talker

Posts: 6
Trades: 0
Post the offending code and I am sure we will try. Regards.
htmaster321 is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 09:47 PM Re: IE 6 image distortion height:auto
Skilled Talker

Posts: 52
Name: Bruce
Trades: 0
Thanks, but I'm not sure there is an easy workaround.

It's a bug in IE 6.

Simple version of my code:
HTML:
Code:
<img class="gallery" src="image1.jpg" />
External CSS:
Code:
img.gallery {width:24.9%;height:auto}
I was just wondering if there was an easy lightweight workaround to get past this IE 6 bug.

EDIT: Nevermind I just used Javascript's getElementById to dynamically load in different stylesheets.

Gosh I'm such a noob. lol

Last edited by SillyWilly; 02-04-2008 at 04:40 AM..
SillyWilly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE 6 image distortion height:auto
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11290 seconds with 12 queries