Connecting Tech Pros Worldwide Help | Site Map

Re: Input Width

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 19th, 2008, 05:45 PM
shapper
Guest
 
Posts: n/a
Default Re: Input Width

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.