Click here to get back home

Positioning within

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Positioning within test9991014 03-20-2008
Posted by test9991014 on March 20, 2008, 10:31 am
Please log in for more thread options
Hi folks,

I've got something like this:

<table>
<tr>
<td>1</td>
<td align=center>
<input type=text>
</td>
<td>3</td>
</tr>
</table>

I've found that the <input> is not quite where I want it
vertically, and of course align=top & align=bottom
aren't what I want either.

So is there a way to position the <input> within
the <td> so that it is exactly X pixels below the top?

Thanks.




Posted by Jonathan N. Little on March 20, 2008, 10:49 am
Please log in for more thread options
test9991014@yahoo.com wrote:
> Hi folks,
>
> I've got something like this:
>
> <table>
> <tr>
> <td>1</td>
> <td align=center>
> <input type=text>
> </td>
> <td>3</td>
> </tr>
> </table>
>
> I've found that the <input> is not quite where I want it
> vertically, and of course align=top & align=bottom
> aren't what I want either.
>
> So is there a way to position the <input> within
> the <td> so that it is exactly X pixels below the top?


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by test9991014 on March 20, 2008, 12:28 pm
Please log in for more thread options

And the answer is:

<td align=top>
<input style="margin-top: 3px;">

... changing 3px to whatever is desired.

Posted by Harlan Messinger on March 20, 2008, 7:28 pm
Please log in for more thread options
test9991014@yahoo.com wrote:
> And the answer is:
>
> <td align=top>
> <input style="margin-top: 3px;">
>
> ... changing 3px to whatever is desired.

It's a suboptimal answer, considering you have to change it every time
you change the height of the input box or the height of the TD.

Similar ThreadsPosted
css positioning June 3, 2005, 4:14 am
positioning layers April 25, 2006, 7:40 am
CSS positioning: why does this work? May 15, 2006, 2:12 pm
CSS positioning pickle July 11, 2006, 9:15 pm
Positioning context - does it work? September 25, 2004, 1:58 pm
Style absolute positioning October 25, 2004, 12:14 pm
IE 6 (WinXP) and CSS positioning broken?? February 13, 2005, 11:17 am
Positioning of stuff in a relative way April 26, 2005, 4:45 pm
layout element positioning using CSS... June 7, 2006, 4:04 pm
Table Positioning....dynamic? October 11, 2006, 3:55 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap