css: overriding input[type="text"] -


css looks like:

input[type="text"] {   width: 200px; }  .small  {   width: 50px; } 

i have text fields i'd smaller. i've tried few different things, can't figure out how specify input field with, say, width 50.

textbox rendered with:

  <%= html.textbox("order","",new { @class="small", size = 5 } ) %> 

size attribute ignored, , .small doesn't override input.

write more specific selector.

e.g.

input[type="text"].foo {   width: 50px; } 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -