You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ru...@aeiou.pt on 2003/07/15 16:04:52 UTC
Text tag size
Hello everybody,
I'm having a problem which I think nobody ever had.
I need to create a form with multiple (equal) lines. Each line will
have a few text boxes. It's made to work on a 800x600 resolution.
While I was trying to reduce the size of every text box, I've noticed
that if I create an HTML file with:
<input type="text" ... size="1">
and if I create a JSP, using Struts, with:
<html:text ... size="1">
the sizes shown on the screen are different. The first one is smaller
than the second. As I have many text boxes and a 800x600 resolution,
I need every single pixel that I can get.
Can you help me with this? I need to "shrink" Struts text tag.
Thank you
R�ben Carvalho
______________________________________________________________________
Registe-se nas e-newsletters profissionais da Dash�fer, sem qualquer
custo, e habilite-se a ganhar fabulosos pr�mios! Subscreva j�!
http://xekmail.aeiou.pt/dashofer
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Text tag size
Posted by ru...@aeiou.pt.
Thank you Jing,
we were already using css. Now you confirmed it :)
R�ben
Citando Jing Zhou <ji...@netspread.com>:
> Using the size attribute to control the field width
> of a text input is not recommended.
>
> In our demos at http://www.netspread.com, we
> use style="width: 100pt;" for many input fields.
> Note that the "pt" is one of absolute units used
> by browsers. It gives you the ability to control
> the screen layouts regardless what resolutions and
> what fonts the end users are using. So our demos
> works on screens with resolution 1600x1200
> and 1024x768 and with different font settings.
>
> Jing
> Netspread Carrier
> http://www.netspread.com
>
>
>
> ----- Original Message -----
> From: <ru...@aeiou.pt>
> To: <st...@jakarta.apache.org>
> Sent: Tuesday, July 15, 2003 9:04 AM
> Subject: Text tag size
>
>
> > Hello everybody,
> >
> > I'm having a problem which I think nobody ever had.
> >
> > I need to create a form with multiple (equal) lines. Each line
will
> > have a few text boxes. It's made to work on a 800x600 resolution.
> >
> > While I was trying to reduce the size of every text box, I've
noticed
> > that if I create an HTML file with:
> > <input type="text" ... size="1">
> >
> > and if I create a JSP, using Struts, with:
> > <html:text ... size="1">
> >
> > the sizes shown on the screen are different. The first one is
smaller
> > than the second. As I have many text boxes and a 800x600
resolution,
> > I need every single pixel that I can get.
> >
> > Can you help me with this? I need to "shrink" Struts text tag.
> >
> > Thank you
> >
> > R�ben Carvalho
> >
> >
______________________________________________________________________
> > Registe-se nas e-newsletters profissionais da Dash�fer, sem
qualquer
> > custo, e habilite-se a ganhar fabulosos pr�mios! Subscreva j�!
> > http://xekmail.aeiou.pt/dashofer
> >
> >
> > ------------------------------------------------------------------
---
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-
help@jakarta.apache.org
> >
> >
>
>
______________________________________________________________________
Registe-se nas e-newsletters profissionais da Dash�fer, sem qualquer
custo, e habilite-se a ganhar fabulosos pr�mios! Subscreva j�!
http://xekmail.aeiou.pt/dashofer
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Text tag size
Posted by Jing Zhou <ji...@netspread.com>.
Using the size attribute to control the field width
of a text input is not recommended.
In our demos at http://www.netspread.com, we
use style="width: 100pt;" for many input fields.
Note that the "pt" is one of absolute units used
by browsers. It gives you the ability to control
the screen layouts regardless what resolutions and
what fonts the end users are using. So our demos
works on screens with resolution 1600x1200
and 1024x768 and with different font settings.
Jing
Netspread Carrier
http://www.netspread.com
----- Original Message -----
From: <ru...@aeiou.pt>
To: <st...@jakarta.apache.org>
Sent: Tuesday, July 15, 2003 9:04 AM
Subject: Text tag size
> Hello everybody,
>
> I'm having a problem which I think nobody ever had.
>
> I need to create a form with multiple (equal) lines. Each line will
> have a few text boxes. It's made to work on a 800x600 resolution.
>
> While I was trying to reduce the size of every text box, I've noticed
> that if I create an HTML file with:
> <input type="text" ... size="1">
>
> and if I create a JSP, using Struts, with:
> <html:text ... size="1">
>
> the sizes shown on the screen are different. The first one is smaller
> than the second. As I have many text boxes and a 800x600 resolution,
> I need every single pixel that I can get.
>
> Can you help me with this? I need to "shrink" Struts text tag.
>
> Thank you
>
> Rúben Carvalho
>
> ______________________________________________________________________
> Registe-se nas e-newsletters profissionais da Dashöfer, sem qualquer
> custo, e habilite-se a ganhar fabulosos prémios! Subscreva já!
> http://xekmail.aeiou.pt/dashofer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org