Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: missing columns attribute in select element

From: Simon Hürlimann (IMSEC) <simon.huerlimann@imsec.ch>
Date: Wed, 16 Jul 2003 17:47:48 +0200
To: "Peter Foti (PeterF)" <PeterF@SystolicNetworks.com>
Cc: www-html@w3.org
Message-Id: <200307161747.48877.simon.huerlimann@imsec.ch>

Am Mittwoch, 16. Juli 2003 16.27 schrieben Sie:
> Hi Simon,
>
> Part of the problem could be that you spelled "width" wrong.  You can set
> the width as follows:
:-) luckily not in the real source.

> <html>
[snip]
>       width: 150px;
Well, I know this works. But the problem is, that px doesn't scale with the 
text size. If you have a look at the textarea element, you'll see that the 
width attribute is used to specify the width relative to chars. From the 
html401 spec of textarea:
	cols: This attribute specifies the visible width in average character widths.

Is there any way to do something similar with the select field?

> Hope this helps.
Not realy, but thanx anyway:-)

> Regards,
> Peter Foti
>
> >-----Original Message-----
>
> From: www-html-request@w3.org [mailto:www-html-request@w3.org]On Behalf
>
> >Of Simon Hürlimann
> >Sent: Wednesday, July 16, 2003 9:19 AM
> >To: www-html@w3.org
> >Subject: missing columns attribute in select element
> >
> >
> >
> >Hi all
> >
> >(Please CC me, I'm not on the list)
> >
> >I have the problem that I have to specify the size of a
> >dropdown field. I know
> >that I can use the size attribute to set the number of rows.
> >But I can't find
> >a way to set the width of the input field.
> >I'm currently using a style attribute containing 'with=XXem',
> >but that gives
> >not exactly the result I'm aiming for.
> >
> >Well, first of all, does anyone know how to achieve my goal?
> >Using a div...?
> >
> >Second, I'd realy like to see two things:
> >- HTML should allow a textarea like column attribute to
> >dropdown fields.
> >- CSS should have not only a character hight unit (em), but
> >also a character
> >width one.
> >
> >Well, I just did a small search on the list for this and
> >didn't came up with
> >something. So I don't know wether this was already a topic...
> >
> >Thanx
> >Simon Huerlimann
Received on Wednesday, 16 July 2003 12:12:07 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.