Jump to content

images inheriting width on IE


chadmichael

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...