Skip to content

Instantly share code, notes, and snippets.

@MarkBorcherding
Created April 19, 2010 15:51
Show Gist options
  • Select an option

  • Save MarkBorcherding/371193 to your computer and use it in GitHub Desktop.

Select an option

Save MarkBorcherding/371193 to your computer and use it in GitHub Desktop.
<!-- Which way would would you expect this to render? -->
<%= Html.TextBoxFor(x=>x.CustomerTelephone, new {style="width:240px !important"}) %>
A) <input type="text" id="CustomerTelephone" style="width:240px !important" />
B) <input type="text" id="CustomerTelephone" style="width:240px ! important" />
<!-- Hint: It's not the way that generates valid CSS! -->
@MarkBorcherding
Copy link
Author

OK...I retract. It was Firebug sillyness that caused it to display funny...I still don't like HTML helpers though. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment