On Mar 11, 2011, at 6:24 AM, Bruno Rocha wrote:
> Use the !important[0]
> 
> 
>  <style type="text/css">
>       textarea {
>         width: 100px !important;  
>      }
> </style>  
> 
> [0] 
> http://www.webcredible.co.uk/user-friendly-resources/web-dev/css-important.shtml
> 

Generally speaking, you should be able to do this kind of thing in css without 
resorting to JavaScript. When a css override fails, it's often because of a 
syntax error (so the new spec gets silently ignored), or because an override 
needs to be more specific (or later in the flow) than the default value.

!important moves a spec to the top of the priority list.

Reply via email to