Connecting Tech Pros Worldwide Help | Site Map

Re: Input Width

  #1  
Old August 19th, 2008, 06:45 PM
shapper
Guest
 
Posts: n/a
On Aug 19, 6:37*pm, shapper <mdmo...@gmail.comwrote:
Quote:
On Aug 19, 6:08*pm, "Jonathan N. Little" <lws4...@central.netwrote:
>
>
>
Quote:
shapper wrote:
Quote:
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:
Is what you are wanting
>
Quote:
input[type="text"] { width: 24em; }
>
Quote:
?
>
Quote:
--
Take care,
>
Quote:
Jonathan
-------------------
LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
>
Wow, it worked fine ... didn't know that ... but is there ok for all
browsers?
>
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
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:55 PM
Table with input width 100% Robert answers 3 August 31st, 2005 08:45 AM