Link to home
Start Free TrialLog in
Avatar of ottenm
ottenm

asked on

textbox style wrecked in firefox by VS 2003 (replaces style attrib with height/width)

I have a multiline textbox that shows great in IE (matches what shows in VS design view), but shows way too small in FF.  Under View | Source I could see that the CSS got dropped when serving FF!  So I replaced "asp:textbox height=100 width=100" with "asp:textbox style="height: 100px; width: 100px;", and everything looked great in both browsers!  Until I switched between design and html views in VS.  It replaces my style attribute with the height/width attributes, and goes back to serving the CSS to IE, but not to FF.

Need the CSS served to both browsers, or some way to keep VS from wiping out the CSS I type in the editor.

Thanks for any help/explanations.  

Mike
ASKER CERTIFIED SOLUTION
Avatar of Sammy
Sammy
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ottenm
ottenm

ASKER

Thanks, shortened it a bit:

me.MyTextBos.Attributes.Add("style", "height: 208px; width: 616px;")