file input width

  • iochinome
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Apr 12, 2008
  • Posts: 42
  • Status: Offline

Post May 7th, 2008, 1:32 pm

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>
</table>
</div>
  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>


thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 7th, 2008, 1:32 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post May 7th, 2008, 4:26 pm

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...
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post May 7th, 2008, 7:21 pm

Is it because you got a certain width defined in the table style attribute?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post May 8th, 2008, 1:53 am

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.
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 109 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.