31 users online (0 members and 31 guests)  


  Results 1 to 2 of 2

Related

  1. Height form paypal    Forum: CSS Forum
    Replies: 2
  2. 100% Height on nested DIVs?    Forum: CSS Forum
    Replies: 3
  3. Table height issues in IE    Forum: HTML Forum
    Replies: 3
  4. IE div height query    Forum: CSS Forum
    Replies: 5
  5. Replies: 12
  1. #1
    tvraghavan's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2007
    Posts
    1

    CSS and img height & width

    I have a bunch of HTML page that contains the height and width of image (inside the <img src..> tag for each image) set to 32px. I tried to override the height and width with the following entry in the CSS file
    img
    {
    height: auto;
    width: auto;
    }
    A sample HTML page contained 20+ images and few of them seemed to work fine and the other few were still showing up small.
    However all images showed up fine in Firefox. This issue seems to be specific to IE 5.0/6.0+
    Any idea what might be the issue?

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: CSS and img height & width

    I believe that the attributes within the img tag take precedence over what is in your CSS. Remove the height and width attributes from the img tag and the images will show up in your web pages as their true size.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread