Connecting Tech Pros Worldwide Help | Site Map

Re: Input Width

  #1  
Old August 19th, 2008, 06:55 PM
shapper
Guest
 
Posts: n/a
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 Threads
Thread Thread Starter Forum Replies Last Post
Input Width shapper answers 3 August 20th, 2008 07:08 PM
Re: Input Width Jonathan N. Little answers 0 August 19th, 2008 11:25 PM
Re: Input Width shapper answers 0 August 19th, 2008 06:45 PM
Table with input width 100% Robert answers 3 August 31st, 2005 08:45 AM