By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,879 Members | 1,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,879 IT Pros & Developers. It's quick & easy.

algin text field and button

P: n/a
Hi,

Here is my html:

<table>
<tr>
<td colspan=2>Name <input type=text...><input type=button...></td>
</tr>
<tr>
<td>....</td>
<td>....</td>
</tr>
</table>

The width of the second row (and thus the width of the table) is
changing depending on its content. I want, however, in the first row,
"Name" is always left aligned. The button is always right aligned. And
the text filed fill all the space between them.

I can not figure out how to do it. Can anyone help?

Thanks,

ff

Feb 21 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Scripsit finecur:
Here is my html:
Where's your URL?
<table>
Why?
<td colspan=2>
Why?
Name <input type=text...>
Why no <label>?
<input type=button...>
Why? To invoke known IE bugs?
I want, however, in the first row,
"Name" is always left aligned. The button is always right aligned. And
the text filed fill all the space between them.
This sounds like an interesting question, but it's really about styling
(CSS), not HTML.
I can not figure out how to do it. Can anyone help?
Just create a simple and robust version first. Then ask in c.i.w.a.s., and
don't forget to mention the URL. Oh, and try to find a more descriptive
Subject line. You don't really want to align. You want to create a text
field with a width that adjusts to the available width, right?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 21 '07 #2

P: n/a
You want to create a text
field with a width that adjusts to the available width, right?
Yes, how?

Feb 21 '07 #3

P: n/a
Scripsit finecur:
You want to create a text
>field with a width that adjusts to the available width, right?

Yes, how?
First try to find help with reading comprehension. Or just re-read what I
wrote, and get the point about the choice of the right group, among other
things.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 21 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.