Strange IE7 Form problem

Discussion in 'HTML & Website Design' started by cawlin, May 14, 2008.

  1. #1
    Having some troubles with a "choose file" form in IE7.

    
    <label for="">Photo</label>
    <input type="hidden" name="max_file_size" value="1000000"  />
    <input type="file" name="avatar" size="25" class="input_text input_lg" />
    
    Code (markup):
    In other browsers it appears normal however in IE7 the text box becomes longer and the "choose file" button extends outside my layout. chaning the size="25" does not change the size of the text box.

    Could really use a hand with this if anyone has experienced this phenomenon.
     
    cawlin, May 14, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    crath, May 14, 2008 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ignore

    *Edit, ignore all that, I misread you to mean the button, you meant the text box... testing with my form, though, I find myselft able to change the width of the textinput as small as 10 and as large as 50 (or larger but that's just what I tried). So, there is likely an error somewhere else, because this is not an IE7 bug.

    http://stommepoes.nl/Homeselling/secondhome/invoeren5.html the size is set in HTML and changing that number works on my IE7 (WInXP if it matters). So, triple check your code through the validator.
     
    Stomme poes, May 15, 2008 IP