473,387 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

align text field and button

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
3 4331
Scripsit finecur:
Here is my html:
I already explained what you should have done, when you asked in c.i.w.a.h.
Apparently you understood only the choice of group part. Consider yourself
plonked.

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

Feb 21 '07 #2
I don't know what you have explained to me and I do not know what your
solution is.

You sounds like the George W Bush of this forum and the html forum who
can command others.

This does not work for me.
On Feb 21, 2:36 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
Scripsitfinecur:
Here is my html:

I already explained what you should have done, when you asked in c.i.w.a.h.
Apparently you understood only the choice of group part. Consider yourself
plonked.

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

Feb 21 '07 #3
Actually Jukka was being less abrupt than normal with you (for some
reason....)

The gist of his answer (as I read it) was:
1) why are you using table for non-tabular data? You shold probably
reconsider this.
2) "... ask in c.i.w.a.s.," and don't forget to mention the URL."
Since this is a style sheet issue ask in the right group - which you found.
3) "and don't forget to mention the URL."

There are very few people here who will take your scrap of html - assign a
head and doctype to it and try to figure out what you mean. With just that
scrap there are way too many possbile questions: is there any style
involved and if so what; are there any syntactically incorrect lines that
should be above your scrap that would cause it to misbehave; did you cut
and paste this scrap or did you type it in - and if you type it in, is it
an accurate reflection of what is in your html.

It's a simple request if you want help. Put the sample up in a functioning
page, validate both the html and css (why ask them to correct things that
you should have corrected first?) and then, finally, ask them take a look
at it.

You did the equivalent of walking into a garage somewhere, saying my car
won't run, here's the keys and walking off. One would expect the mechanic
to possibly have the car to fix, or at least know where to find it. If you
want help you have to give enough good information to get that help in the
case of the car - bring the car or give him doirections so he can have a
towtruck get it, in the case of an html page give them a link to the page
which display the problem.

In other words - simply, you won't get a solution to your problem if you
don't present it in the way that makes it easy for them to see the problem.

//al

On 21 Feb 2007 15:23:24 -0800, finecur wrote:
I don't know what you have explained to me and I do not know what your
solution is.

You sounds like the George W Bush of this forum and the html forum who
can command others.

This does not work for me.

On Feb 21, 2:36 pm, "Jukka K. Korpela" <jkorp...@cs.tut.fiwrote:
>Scripsitfinecur:
>>Here is my html:

I already explained what you should have done, when you asked in c.i.w.a.h.
Apparently you understood only the choice of group part. Consider yourself
plonked.

--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
Feb 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mikko Rantalainen | last post by:
See example at <URL:http://www.cc.jyu.fi/~mira/moz/formtest.php>. The problem is that the label of submit button is always centered on the button regardsless of 'text-align' property in CSS....
3
by: Stanislav Traykov | last post by:
Hello, I have a question about text positioning in a table field. In particular, I want to create a template which works with images of unknown size. There is a <table> field, in which I need...
0
by: smr78 | last post by:
Hi, Up to now, I didn't find a solution to align text in the middle of a inline neither block box in the vertical direction. That's because the vertical-align property is not active for many...
14
by: jlemay | last post by:
if you look at http://www.emrose.net/contact1.html the last field is a textarea field and I can't make it align with the other text fields. it's pretty close, but this comes from trial and...
6
by: DM | last post by:
Is there any way to left align the text in a server control button?
3
by: tshad | last post by:
I have the following: <tr valign="baseline"> <td align="center" width="103" colspan=2 nowrap> <asp:Button ID="ViewPositions" runat="server" Text="View Positions" OnClick="ViewPositions_Click"...
7
by: finecur | last post by:
Hi, Here is my html: <table> <tr> <td colspan=2>Name <input type=text...><input type=button...></td> </tr> <tr>
5
by: Yohan Blurp | last post by:
Hi, Here is sample page to show you the problem : <html><body> <form action="/cgi-bin/test.cgi" method="post"> Data Path : <input type="text" size="50" value="C:\Test Data\May 2007.xls"...
6
shane3341436
by: shane3341436 | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
5
by: Max2006 | last post by:
Hi, I have a TreeView and this is my node style: <asp:TreeNodeStyle ForeColor = "#000000" Font-Size="9px" Font-Bold="false" Width="100px" NodeSpacing="3px" /> The problem is the expand...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.