Connecting Tech Pros Worldwide Help | Site Map

Re: Input Width

shapper
Guest
 
Posts: n/a
#1: Aug 19 '08
On Aug 19, 6:39*pm, shapper <mdmo...@gmail.comwrote:
Quote:
On Aug 19, 6:37*pm, shapper <mdmo...@gmail.comwrote:
>
>
>
Quote:
On Aug 19, 6:08*pm, "Jonathan N. Little" <lws4...@central.netwrote:
>
Quote:
Quote:
shapper wrote:
Hello,
>
Quote:
Quote:
I defined the width of a form input as follows:
>
Quote:
Quote:
fieldset input {width: 24em;}
>
Quote:
Quote:
But then the checkbox inputs also get a width. So I uses the
following:
>
Quote:
Quote:
<input name="IsPublished" id="IsPublished" type="checkbox"
class="test" value="Yes" />Check to publish
>
Quote:
Quote:
fieldset input.test {width: auto;}
>
Quote:
Quote:
But I wasn't able to reset the width. Any idea why? I also tried with:
>
Quote:
Quote:
fieldset input.test {width: 10px;}
>
Quote:
Quote:
It didn't work either.
>
Quote:
Quote:
Is what you are wanting
>
Quote:
Quote:
input[type="text"] { width: 24em; }
>
Quote:
Quote:
?
>
Quote:
Quote:
--
Take care,
>
Quote:
Quote:
Jonathan
-------------------
LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
>
Quote:
Wow, it worked fine ... didn't know that ... but is there ok for all
browsers?
>
Quote:
Thanks,
Miguel
>
Hmmm it does now work with IE ... would be great to be able to use it
but I need to have this working in IE
It worked ... I had a problem because I was using something as:

form.Base fieldset ol li input ...

And in the test style I used a different route by mistake ... used ul
instead of ol ... now it is working fine.

Thanks,
Miguel
Closed Thread


Similar HTML / CSS bytes