943,733 Members | Top Members by Rank

Ad:
Jan 21st, 2008
0

Table cell width question

Expand Post »
So I am trying to do some sizing formating with my HTML code, and I did something that works but I need to make sure I didn't do anything bad that will come up and bite me later.

I essentially am creating a form to upload files and since I don't know the size of the Browse File element, I made the width of the column it's in super small. This way it would resize itself.

How bad of a thing am I doing?

Thanks ahead as always,

Sergio

<table width="400">
<tr>
	<td ALIGN="RIGHT" VALIGN="MIDDLE">
		Photo to Upload: 
	</td>	
	<td WIDTH="10" ALIGN="RIGHT" VALIGN="MIDDLE">
		<INPUT TYPE="file" NAME="photo">
	</td>	
</tr>
</table>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
SergioQ is offline Offline
49 posts
since Nov 2007
Jan 21st, 2008
1

Re: Table cell width question

Very bad ;-)
Some browsers may actually listen to you and not bother to expand it, so I would suggest you simply set the size of your input element instead...
HTML and CSS Syntax (Toggle Plain Text)
  1. <INPUT TYPE="file" NAME="photo" style="width: 50px;">
Then you won't have to worry about setting the cell width or what size the upload element will be!

Regards
Dave
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Jan 22nd, 2008
0

Re: Table cell width question

Thank you for the solution. Don't have enough wokring knowledge of forms to realize that solution was possible. Obviously I should study more.
Reputation Points: 10
Solved Threads: 0
Light Poster
SergioQ is offline Offline
49 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Starting on GameEntertainments Site
Next Thread in HTML and CSS Forum Timeline: new to web. development





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC