chadmichael Posted March 13, 2007 Share Posted March 13, 2007 I have an image tag that I set the height on, expecting it to obtain its width automatically. However, IE is making the width equal to a width set on a containing div several layers up. Are images supposed to inherit width like this, even if you set the height? Link to comment Share on other sites More sharing options...
pulpfiction Posted March 13, 2007 Share Posted March 13, 2007 I dont think thats how IE works, but it tries to maintain the ratio, say image size is 100X50 [W X H] and you try to increase the height from 50 to 100 [double] then the width also doubles 100 becomes 200...... Link to comment Share on other sites More sharing options...
Nim199 Posted March 17, 2007 Share Posted March 17, 2007 If you have formated the images in a style sheet, or in the head option, it will override the tag info.If it is for this reason, you just need to either: - Remove the style sheet - Remove the image formating section - Use the 'span style' object to override the style sheet (I have no idea of the outcome, but it seems logical) - Create a new statement in the style sheet, like this [img.noformating {}], and set the "img" tag to that class (again, I have no idea of the outcome, but it seems logical)or - Create a new statement in the style sheet, like this [img.noformating {width: ###; height: ###}Best of luck. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now