Re: [WSG] text field size tag

2004-07-14 Thread Mordechai Peller
Justin French wrote:
In my opinion, you still need to set a "default" width for the element 
using the size attribute, for those without CSS.  Yes, it will be 
overridden with CSS for 99% of your browsing audience, but it safer to 
put *something* in there as default, since you have no idea how a 
browser will behave without it.
If CSS isn't supported, my guess is that your layout will have bigger 
problems than the width of a form control.
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



RE: [WSG] text field size tag

2004-07-14 Thread Patrick Lauke
> It could be 
> that if padding, border and margin values are set (let's say 
> to zero) the widths of the different form controls may be the 
> same - or at least a bit closer ;)

I wouldn't hold my breath on that one. Form elements are notoriously
difficult to consistently style, as they are replaced elements
effectively under the direct control of the browser/OS. Worth a try,
but it's more than likely that fixing it in one browser will throw up
problems in another browser, and you'll end up chasing your own tail.

IMHO anyway,

Patrick

Patrick H. Lauke
Webmaster / University of Salford
http://www.salford.ac.uk
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*



RE: [WSG] text field size tag

2004-07-14 Thread Owen Gregory
Marco della Pina:
>Internet Explorer 6 (Windows) (only!) in "Standard Mode" has a bug in
>its rendering engine, i.e. the CSS-Definition "width: 200px;" is wider
>for an input field than for a select box.

Mariusz Stankiewicz
>In FireFox .8 the two fields appear different in length on both quirks
>on and off.

This is not really a CSS bug, I think, more a difficulty surrounding the rendering of 
form controls.

As is well known, unstyled form controls are drawn by browsers using the underlying OS 
settings. This includes features like the arrow on the right of a select box and the 
way a form button changes when it is "pressed". In the example, only the width value 
was set by CSS. It could be that if padding, border and margin values are set (let's 
say to zero) the widths of the different form controls may be the same - or at least a 
bit closer ;)

Owen

-Original Message-
From: Mariusz Stankiewicz [mailto:[EMAIL PROTECTED]
Sent: 14 July 2004 10:27
To: [EMAIL PROTECTED]
Subject: Re: [WSG] text field size tag


In FireFox .8 the two fields appear different in length on both quirks 
on and off.

marco della pina wrote:

>Ted Drake wrote:
>
>  
>
>>I'm wondering if anyone has any more concrete opinions on the 
>>practice of defining width of input and select fields with 
>>css instead of the size attribute.
>>
>>
>
>There is a big problem with defining the width of input and select
>fields over CSS:
>
>Internet Explorer 6 (Windows) (only!) in "Standard Mode" has a bug in
>its rendering engine, i.e. the CSS-Definition "width: 200px;" is wider
>for an input field than for a select box.
>
>I wrote a small example on http://www.mdpnet.de/css-width/
>
>So far, I found no solution on this problem. Does anybody else?
>
>Greetings from Germany,
>
>Marco
>*
>The discussion list for http://webstandardsgroup.org/
>See http://webstandardsgroup.org/mail/guidelines.cfm
>for some hints on posting to the list & getting help
>* 
>
>
>  
>
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com

CONFIDENTIALITY NOTICE
The information contained in this communication is confidential and may be legally 
privileged.  It is intended solely for the use of the individual or entity to whom it 
is addressed and others authorised to receive it.  If you are not the intended 
recipient you should not disclose, copy, distribute or take action on the contents of 
this information, except for the purpose of delivery to the addressee.  Any 
unauthorised use is strictly prohibited and may be unlawful.  If you have received 
this email in error please notify the sender by email immediately and delete the 
message from your computer.

ECOTEC Research & Consulting Limited
Registered in England No. 1650169 Registered Office:
Priestley House, 28-34 Albert Street, Birmingham, B4 7UD, UK
Tel: +44 (0)121 616 3600
http://www.ecotec.com

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*



Re: [WSG] text field size tag

2004-07-14 Thread Mariusz Stankiewicz
In FireFox .8 the two fields appear different in length on both quirks 
on and off.

marco della pina wrote:
Ted Drake wrote:
 

I'm wondering if anyone has any more concrete opinions on the 
practice of defining width of input and select fields with 
css instead of the size attribute.
   

There is a big problem with defining the width of input and select
fields over CSS:
Internet Explorer 6 (Windows) (only!) in "Standard Mode" has a bug in
its rendering engine, i.e. the CSS-Definition "width: 200px;" is wider
for an input field than for a select box.
I wrote a small example on http://www.mdpnet.de/css-width/
So far, I found no solution on this problem. Does anybody else?
Greetings from Germany,
Marco
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 

 

*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



RE: [WSG] text field size tag

2004-07-14 Thread marco della pina
Ted Drake wrote:

> I'm wondering if anyone has any more concrete opinions on the 
> practice of defining width of input and select fields with 
> css instead of the size attribute.

There is a big problem with defining the width of input and select
fields over CSS:

Internet Explorer 6 (Windows) (only!) in "Standard Mode" has a bug in
its rendering engine, i.e. the CSS-Definition "width: 200px;" is wider
for an input field than for a select box.

I wrote a small example on http://www.mdpnet.de/css-width/

So far, I found no solution on this problem. Does anybody else?

Greetings from Germany,

Marco
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*



Re: [WSG] text field size tag

2004-07-13 Thread Justin French
On 14/07/2004, at 5:13 AM, Ted Drake wrote:
In the 5th edition of O'Reilly's HTML and XHTML the definitive guide, 
they suggest listing a size and max length for the text input field. I 
would like to define the width with css and leave out the size 
attribute on my input fields.  I'm trying to remove as much styling 
from our forms as possible and this works in my testing so far.

I'm wondering if anyone has any more concrete opinions on the practice 
of defining width of input and select fields with css instead of the 
size attribute.
In my opinion, you still need to set a "default" width for the element 
using the size attribute, for those without CSS.  Yes, it will be 
overridden with CSS for 99% of your browsing audience, but it safer to 
put *something* in there as default, since you have no idea how a 
browser will behave without it.

Most browsers seem to put in a sensible default width if you exclude 
the size attribute, but I think "better the devil you know" in this 
case -- since you can't possibly test on every useragent available, 
let's give them a sensible default, then style over the top of it.

---
Justin French
http://indent.com.au
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] text field size tag

2004-07-13 Thread Mordechai Peller
Ted Drake wrote:
listing a size and max length for the text input field. I would like to define the 
width with css and leave out the size attribute on my input fields.
To get around IE nasty habit of expanding boxes to the destruction of 
the layout, I set {width : 80%;} with success. The attribute "size" is 
equivalent to width for all practical purposes. Since this is 
presentation, it belongs in the CSS.

The "maxlength" is another story; it's the maximum number of character 
the field will except, and therefor nothing to due with presentation.
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



Re: [WSG] text field size tag

2004-07-13 Thread Patrick H. Lauke
I'd say that the size is an intrinsic dimension of the input element, and -
similar to what
happens with images - it's ok to have it in your xhtml. You can still use
css in addition
to it. But I think at the end of the day it comes down to preference...

Patrick H. Lauke
__
re·dux (adj.): brought back; returned. used postpositively. [latin : re-,
re- + dux, leader; see duke.]
http://www.splintered.co.uk | http://www.photographia.co.uk |
http://redux.deviantart.com


*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
* 



[WSG] text field size tag

2004-07-13 Thread Ted Drake
In the 5th edition of O'Reilly's HTML and XHTML the definitive guide, they suggest 
listing a size and max length for the text input field. I would like to define the 
width with css and leave out the size attribute on my input fields.  I'm trying to 
remove as much styling from our forms as possible and this works in my testing so far. 
 

I'm wondering if anyone has any more concrete opinions on the practice of defining 
width of input and select fields with css instead of the size attribute.

Thanks
Ted
*
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*