473,404 Members | 2,137 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,404 software developers and data experts.

can't get text field to align with textarea field

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
error. what do I have to do to make these fields align both right and
left? does the size= attribute in a text input give you the same
dimension as the cols= attribute in a textarea? seems like it doesn't.

Jul 23 '05 #1
14 6613
jl****@alumni.princeton.edu wrote:
if you look at
http://www.emrose.net/contact1.html
Then I think you should stop worrying about minor alignment issues now
and fix the real problems first. I can't see the form unless I widen
the browser window usually and inconveniently wide, and just because
you are wasting an indecent amount of horizontal space to create a
large black area. Moreover, the field labels are horrendously small and
hard to read, especially since they are dark on black, and they aren't
even marked up as <label> elements. And you don't specify the E-mail
address for contacts, so the awful form would be the _only_ way to
contact the company; so why would a user bother?

In a word, the only way to fix the page is to redesign it from scratch.
The markup is far too messy and browser-dependent to be fixed in any
other way.
the last field is a textarea field and I can't make it align with
the other text fields.
You mean you can't make it take the same width. Why should it? The
width of a field should depend on its content, not on some Procrustean
esthetics. For example, making the phone field as wide as the field for
the (full) name of a person is unnatural.
does the size= attribute in a text input give
you the same dimension as the cols= attribute in a textarea?


It does, in the defined sense that they specify the width of the field
in (average-width) characters. The physical dimensions may vary if
different fonts are used in the fields. If you wish to do something
about this, then you would need CSS. But it's too early to consider
such nuances before you have a page that works and has reasonable
markup.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2
> And you don't specify the E-mail
address for contacts, so the awful form would be the _only_ way to
contact the company; so why would a user bother? this was done to help reduce spam. why would a user bother? "I would
have gotten in touch with you, but I didn't like your form." - I just
can't see that happening, and if that were the case, it's probably
someone we're better off now knowing.
In a word, the only way to fix the page is to redesign it from scratch. The markup is far too messy and browser-dependent to be fixed in any
other way.

that can't be right. must be a way to fix this without redesigning it
from scratch.

Jul 23 '05 #3
jl****@alumni.princeton.edu wrote:
And you don't specify the E-mail
address for contacts, so the awful form would be the _only_ way to
contact the company; so why would a user bother? this was done to help reduce spam.


Foolish. Spam needs to be dealth with anyway, somehow. What you achieve
is extra trouble to potential customers.

Of course, there is a 100% sure way of getting rid of spam: disconnect
from the Internet now, and never return. That's what you should do if
you want to avoid spam at any cost.
why would a user bother?
He won't. That was my point.
"I would have gotten in touch with you, but I didn't like your form."
So the customer is wrong? Besides, there are dozens of reasons why the
form simply won't do, and it's not a matter of like or dislike. But you
are apparently not interested. You didn't even get the point that what
you are asking for is (besides being a non-problem that you wish to
turn into a small problem) not an HTML issue, hence off-topic here.
Setting an <input> field width equal to a <textarea> width is _not_
something you can do in HTML, and I even told you why.
- I just can't see that happening, and if that were the case, it's
probably someone we're better off now knowing.


You are certainly sending quite a message.
In a word, the only way to fix the page is to redesign it from
scratch. The markup is far too messy and browser-dependent to be
fixed in any other way.

that can't be right. must be a way to fix this without redesigning
it from scratch.


You don't seem to want to fix anything. You just want to increase the
confusion. The page is really broken by design, and you are wasting
everyone's time if you simply insist on fine tuning something that
needs no tuning, and keep doing that in a wrong group.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #4
me
<jl****@alumni.princeton.edu> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
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
error. what do I have to do to make these fields align both right and
left? does the size= attribute in a text input give you the same
dimension as the cols= attribute in a textarea? seems like it doesn't.


Congratulations on fixing the problem you had with the width of your fields
on this page: http://www.emrose.net/contact.html You are correct that the
cols attribute controls the width of a multi line text field. To match a
single line text field you must set the width of your multi line field to a
greater value. In this case the multi line field cols must be set to 43 and
all the other fields must be set to a size of 40 characters.

That page has some strange code. What are the anchors for? Why put the text
next to the fields inside div's? When I use a form I try to place the tags
so that they're just before and after where the form objects begin and end.
Why did you make the form tags encompass almost the whole page? What is
this?

<CSOBJ occur="46" w="1244"
t="Component" h="62" csref="../emr.data/Components/AAW.html">
<DIV id=AAWText>Site Design by </DIV>
<DIV id=AAWLogo><A href="http://www.aawinc.com/" target=_blank><IMG
height=34
alt="" src="Welcome to E_M_&nbsp;Rose Building
Company_files/LogoAAWsmall.gif"
width=108 align=bottom border=0></A></DIV>
<DIV id=copyright>© 2003 E.M. Rose Building Company, LLC All rights
reserved.</DIV></CSOBJ>

I've never heard of a csobj tag, am I showing my ignorance? To my eyes
there's a lot of empty space on the left of that page but then I build my
pages to fit a screen size of 800x600. And instead of divs I would have used
tables to build a site like that.

Read this to see how I build with tables: news:11*************@corp.supernew
s.com

I must sound nit picky. I'll shut up now.
Good Luck,
me
Jul 23 '05 #5
"me" <anonymous@_.com> wrote:
In this case the multi line field cols must be set to 43 and
all the other fields must be set to a size of 40 characters.


Are you sure it's 43? I think I read the number 42 somewhere.

Clue: You are completely lost. Any relationship between the widths of
an <input> box and a <textarea> box as set in HTML attributes is just
coincidental, since it depends on the font properties, as I explained.
It is futile to try to address such problems in HTML.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #6
me
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"me" <anonymous@_.com> wrote:
In this case the multi line field cols must be set to 43 and
all the other fields must be set to a size of 40 characters.


Are you sure it's 43? I think I read the number 42 somewhere.

Clue: You are completely lost. Any relationship between the widths of
an <input> box and a <textarea> box as set in HTML attributes is just
coincidental, since it depends on the font properties, as I explained.
It is futile to try to address such problems in HTML.
Yucca


Works fine in IE6 so IMO the OP has fixed his problem.
Signed,
me
Jul 23 '05 #7
"me" <anonymous@_.com> wrote:
Works fine in IE6 so IMO the OP has fixed his problem.
This simply indicates that you did not do actual testing.
Signed,
me


Please do not fix your bogus From field before you have a clue and some
willingness to make positive contributions. Thank you in advance.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #8
me
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"me" <anonymous@_.com> wrote:
Works fine in IE6 so IMO the OP has fixed his problem.


This simply indicates that you did not do actual testing.
Signed,
me


Please do not fix your bogus From field before you have a clue and some
willingness to make positive contributions. Thank you in advance.

--
Yucca


I viewed the page in the only browser I have which also happens to be the
most widely used browser. I try to help those who come here asking
questions. Your contributions consist of ridicule.
Signed,
me
Jul 23 '05 #9
Tim
"me" <anonymous@_.com> posted back at Yucca:
I viewed the page in the only browser I have which also happens to be the
most widely used browser. I try to help those who come here asking
questions.
If you're authoring for the WWW, you need to understand that not everyone
uses the same version of MSIE on the same version of Windows that you're
playing with (they all behave differently), and that you need to get your
hands on more than one browser.

My web logs, for example, currently show MSIE as only accounting for 54% of
the visiting public (it's been steadily declining since last year). To
author just for it / ignore others, means I'd be ignoring 46% of the
visitors. That's not a smart move when authoring something for *other*
people to read.
Your contributions consist of ridicule.


Though deservedly so.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 23 '05 #10
me
"Tim" <ti*@mail.localhost.invalid> wrote in message
news:1d******************************@40tude.net.. .
"me" <anonymous@_.com> posted back at Yucca:
I viewed the page in the only browser I have which also happens to be the most widely used browser. I try to help those who come here asking
questions.
If you're authoring for the WWW, you need to understand that not everyone
uses the same version of MSIE on the same version of Windows that you're
playing with (they all behave differently), and that you need to get your
hands on more than one browser.


IMO the differences between newer versions IE are of no consequence to my
clients but YMMV. In my contract I specify that my work is intended for IE6,
my clients understand this, in fact they insist on it. Years ago I use to
waste time installing other browsers, the last time I did this was with NN4
and I spent hours returning my file associations to their original state.
Then I would spend countless hours testing my work, looking for workarounds
and trying to make sure that it looked/worked the same in different
browsers. Now I build sites for the only browser my clients care about, IE6.
If one of their customers has trouble with their site they tell them to use
IE6, problem solved.
My web logs, for example, currently show MSIE as only accounting for 54% of the visiting public (it's been steadily declining since last year). To
author just for it / ignore others, means I'd be ignoring 46% of the
visitors. That's not a smart move when authoring something for *other*
people to read.


My clents have a target audience in mind so this is not an issue for them,
YMMV.
Your contributions consist of ridicule.


Though deservedly so.


You clipped the prior post from Jukka that I originally responded to but
since you commented on it then why do people who come to this NG asking
legitimate questions (some for the first time) deserve ridicule?
Signed,
me
Jul 23 '05 #11
"me" <anonymous@_.com> writes:
Years ago I use to
waste time installing other browsers, the last time I did this was with NN4
and I spent hours returning my file associations to their original
state.


There's actually no need to run scandisk, disk defragmenter and format
on your 160GB HD subsequently and reinstall losedoze to do that, you can
also change them during your favourite soap's upcoming commercial in
the exploiter somewhere in the folder actions menu, if memory serves.
Finding another hobby might be a good alternative (in case it took you
hours doing it like that, incl. RTFM, the latter might even be
mandatory :-).

--
Hello world
Jul 23 '05 #12
me
"Eric B. Bednarz" <be*****@fahr-zur-hoelle.org> wrote in message
news:m1************@email.bednarz.nl...
"me" <anonymous@_.com> writes:
Years ago I use to
waste time installing other browsers, the last time I did this was with NN4 and I spent hours returning my file associations to their original
state.


There's actually no need to run scandisk, disk defragmenter and format
on your 160GB HD subsequently and reinstall losedoze to do that, you can
also change them during your favourite soap's upcoming commercial in
the exploiter somewhere in the folder actions menu, if memory serves.
Finding another hobby might be a good alternative (in case it took you
hours doing it like that, incl. RTFM, the latter might even be
mandatory :-).
--
Hello world


Thank you for your enlightened post.
Signed,
me
Jul 23 '05 #13
Tim
"me" <anonymous@_.com> posted:
I viewed the page in the only browser I have which also happens to be
the most widely used browser.
"Tim" <ti*@mail.localhost.invalid> wrote in message
If you're authoring for the WWW, you need to understand that not everyone
uses the same version of MSIE on the same version of Windows that you're
playing with (they all behave differently), and that you need to get your
hands on more than one browser.
"me" <anonymous@_.com> posted:
IMO the differences between newer versions IE are of no consequence to my
clients but YMMV.
Everyone's mileage varies, and that's the point. Not only the different
performances in different versions, on different versions of Windows, but
all the different combinations of settings.
In my contract I specify that my work is intended for IE6,
my clients understand this, in fact they insist on it.
As the so-called expert in web mastering (since they've asked you, or
someone else, to author pages for them, instead of doing it themselves),
you'd have to make sure that they understand the flaws in that mentality.
But it seems you don't understand it yourself.
Years ago I use to
waste time installing other browsers, the last time I did this was with NN4
and I spent hours returning my file associations to their original state.
Then I would spend countless hours testing my work, looking for workarounds
and trying to make sure that it looked/worked the same in different
browsers. Now I build sites for the only browser my clients care about, IE6.
If one of their customers has trouble with their site they tell them to use
IE6, problem solved.
No, problem created, or passed on. Because many people cannot use IE6.
They can't figure out how to install software, they're not allowed to
install software, their PC can't handle it, don't want to have all their
associations ballsed up to suit you, and they sure as hell ain't going to
spend an hour downloading a new browser just to make you happy. They'll
ignore your site and go elsewhere.
My web logs, for example, currently show MSIE as only accounting for 54%
of the visiting public (it's been steadily declining since last year). To
author just for it / ignore others, means I'd be ignoring 46% of the
visitors. That's not a smart move when authoring something for *other*
people to read. My clents have a target audience in mind so this is not an issue for them,
YMMV.
Most people who have this idea about their target audience really just
don't understand what they're talking about, particularly in a WWW
situation. If you were making a website about customising MSIE6 then you
just *might* have an argument towards optimising sites to suit its foibles.
Your contributions consist of ridicule.

Though deservedly so.

You clipped the prior post from Jukka that I originally responded to but
since you commented on it then why do people who come to this NG asking
legitimate questions (some for the first time) deserve ridicule?


I read the lot, and in general, you put forth *stupid* assertions, and were
told information that was correct but you didn't want to hear, then argued
in a stupid manner and got the treatment you deserved. You're trying it
with me now, and I've got better things to do.

You can bury your head in the sand, if you like, and carry on authoring in
a foolish manner, despite all the advice you've had about doing it
properly, and *why* what you're doing is the wrong way to do it. All
you're doing is harming yourself and those having to put up with the work
you're doing. You're not doing anyone any favours.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Jul 23 '05 #14
me
"Tim" <ti*@mail.localhost.invalid> wrote in message
news:pk****************************@40tude.net...
"me" <anonymous@_.com> posted:
I viewed the page in the only browser I have which also happens to be
the most widely used browser.
"Tim" <ti*@mail.localhost.invalid> wrote in message
If you're authoring for the WWW, you need to understand that not everyone uses the same version of MSIE on the same version of Windows that you're playing with (they all behave differently), and that you need to get your hands on more than one browser.
"me" <anonymous@_.com> posted:
IMO the differences between newer versions IE are of no consequence to my clients but YMMV.
Everyone's mileage varies, and that's the point. Not only the different
performances in different versions, on different versions of Windows, but
all the different combinations of settings.
In my contract I specify that my work is intended for IE6,
my clients understand this, in fact they insist on it.


As the so-called expert in web mastering (since they've asked you, or
someone else, to author pages for them, instead of doing it themselves),
you'd have to make sure that they understand the flaws in that mentality.
But it seems you don't understand it yourself.
Years ago I use to
waste time installing other browsers, the last time I did this was with NN4 and I spent hours returning my file associations to their original state. Then I would spend countless hours testing my work, looking for workarounds and trying to make sure that it looked/worked the same in different
browsers. Now I build sites for the only browser my clients care about, IE6. If one of their customers has trouble with their site they tell them to use IE6, problem solved.


No, problem created, or passed on. Because many people cannot use IE6.
They can't figure out how to install software, they're not allowed to
install software, their PC can't handle it, don't want to have all their
associations ballsed up to suit you, and they sure as hell ain't going to
spend an hour downloading a new browser just to make you happy. They'll
ignore your site and go elsewhere.
My web logs, for example, currently show MSIE as only accounting for 54% of the visiting public (it's been steadily declining since last year). To author just for it / ignore others, means I'd be ignoring 46% of the
visitors. That's not a smart move when authoring something for *other*
people to read.
My clents have a target audience in mind so this is not an issue for them, YMMV.


Most people who have this idea about their target audience really just
don't understand what they're talking about, particularly in a WWW
situation. If you were making a website about customising MSIE6 then you
just *might* have an argument towards optimising sites to suit its

foibles. Your contributions consist of ridicule. Though deservedly so.
You clipped the prior post from Jukka that I originally responded to but
since you commented on it then why do people who come to this NG asking
legitimate questions (some for the first time) deserve ridicule?


I read the lot, and in general, you put forth *stupid* assertions, and

were told information that was correct but you didn't want to hear, then argued
in a stupid manner and got the treatment you deserved. You're trying it
with me now, and I've got better things to do.

You can bury your head in the sand, if you like, and carry on authoring in
a foolish manner, despite all the advice you've had about doing it
properly, and *why* what you're doing is the wrong way to do it. All
you're doing is harming yourself and those having to put up with the work
you're doing. You're not doing anyone any favours.


We must agree to disagree. The difference between us is that I have not
insulted or ridiculed you while stating my opinions. It is unfortunate that
you are unwilling to extend me the same courtesy.
Signed,
me
Jul 23 '05 #15

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

Similar topics

1
by: techy techno | last post by:
hii i created a form like this <html> <head> <title>ACCOUNT EXAMPLE</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF"...
2
by: Lovely Angel For You | last post by:
Dear Friends Hope you all are doing great. I am using a form to add text data to the database. With this form I am also using a file field to upload a image file. To use the first thing that...
13
by: LRW | last post by:
Having a problem getting a onSubmit function to work, to where it popsup a confirmation depending on which radiobutton is selected. Here's what I have: function checkdel() { if...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
4
by: devine | last post by:
Hi All, I am VERY new to Javascript. I have been provided with some code, which will enable me to hide/show a text area and change a submit button dependant on a check box. <!DOCTYPE html...
1
by: vj | last post by:
How i can populate all fileds dynamically in jsp page based on contents found in xml file? I have written jsp servlets and java class file. i transferred automatic data from jsp to servlet then to...
0
by: vijendra | last post by:
How i can populate all fileds dynamically in jsp page based on contents found in xml file?I have written jsp servlets and java class file. i transferred automatic data from jsp to servlet then to...
9
by: Dracenfels | last post by:
I've pulled together an online form that creates a number of tables dependant on the results of a dropdown list, i.e. 2 from the list creates two input tables, 10 creates 10 tables etc. The script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.