473,804 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6676
jl****@alumni.p rinceton.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.p rinceton.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.goo glegroups.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.gi f"
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.supe rnew
s.com

I must sound nit picky. I'll shut up now.
Good Luck,
me
Jul 23 '05 #5
"me" <anonymous@_.co m> 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.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"me" <anonymous@_.co m> 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@_.co m> 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.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"me" <anonymous@_.co m> 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@_.co m> 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

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

Similar topics

1
1270
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" text="#000000">
2
4543
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 is just data I dont have to write EncType as it picks the default one. But to use the second one that is to upload an image. I need to write EncType = "multipart/form-data". When I do this the text passed from the other text field goes blank.
13
2372
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 (document.getElementById"].value=='1') { confirm('Are you sure you want to delete this file?'); } } ......
7
3623
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> </head> <style type="text/css">
6
4906
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
4
21018
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 PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
1
6535
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 java class which creates a xml file based on values entered in dynamic jsp page. Now i want to read all those values entered to xml in my other jsp page. I am able to call values from file in my jsp page. But as dynamic values can be any in no...
0
4075
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 java class which creates a xml file based on values entered in dynamic jsp page. Now i want to read all those values entered to xml in my other jsp page.But as dynamic values can be any in no i don't know how could i populate all those in my jsp...
9
1647
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 for creating the tables is as follows; <script type="text/javascript"><!-- function fboxes(NumberOfBoxes){ var i,boxes=''; for(i=0; i<NumberOfBoxes; i++){ boxes += "<table width='400' border='0' cellspacing='0' cellpadding='0'...
0
9571
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.