file input width

  • iochinome
  • Beginner
  • Beginner
  • iochinome
  • Posts: 42

Post 3+ Months Ago

hey guys, i want to have a file input in a table in a div of 150px wide, but no matter what i do, it does not want to resize. how would i change the size of this so it fits?

Code: [ Select ]
<div id="right">
<table align="left" style="width:150px">
<th>upload a picture</th>
<tr><td ><input type="file" id="picture"></td></tr>
  1. <div id="right">
  2. <table align="left" style="width:150px">
  3. <th>upload a picture</th>
  4. <tr><td ><input type="file" id="picture"></td></tr>
  5. </table>
  6. </div>

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

what part doesn't resize? The table, the div or the input field?

Second question why do you need the table? Seems like a lot of extra code...
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8489
  • Loc: USA

Post 3+ Months Ago

Is it because you got a certain width defined in the table style attribute?
  • joebert
  • Genius
  • Genius
  • User avatar
  • Posts: 13511
  • Loc: Florida

Post 3+ Months Ago

You can try lowering the font-size of the elements in that container if you're going for a smaller input.
That's going to be negated if the visitor has a min size set for their screen fonts that's larger than your font-size though.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.