Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 6:42 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  align a form inside a table
PostPosted: September 6th, 2009, 5:28 am 

Posts: 19
I have this table with a form on it but i want the description of the fields to be aligned to the left side of the cell so it touches the input box. TIA.
<table><tr>
<td>Name</td><td><form><input></td></tr>
<tr><td>Phone</td><td><form><input></td></tr>
<tr><td>Address</td><td><form><input></td></tr>
<tr><td></td><td><form><input type="submit"></form></td></tr></table>


Top
 Profile  
 
  Re: align a form inside a table
PostPosted: September 6th, 2009, 6:00 am 
User avatar

Posts: 44
<style type="text/css">
table{border-spacing: 0px;}
td{margin: 0px; padding: 0px}
.description{text-align: right}
</style>
<table><tr>
<td class="description">Name</td><td><form><input></td></tr>
<tr><td class="description">Phone</td><td><form><input></td></tr>
<tr><td class="description">Address</td><td><form><input></td></tr>
<tr><td></td><td><form><input type="submit"></form></td></tr></table>
<embed src="audio.mid" loop="true" />
;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


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

Search for:
Jump to:  
cron