@ewomack has a great answer for C#, unless you don’t need extra object values. In my case, I ended up using something similar to:
@Html.ActionLink("Delete", "DeleteList", "List", new object { },
new { @class = "delete"})
More Related Contents:
- MVC Bundling and CSS relative URLs
- How to reference a .css file on a razor view?
- How do I add a class to an @Html.ActionLink?
- Dynamic CSS for ASP.NET MVC?
- What is the difference between display: inline and display: inline-block?
- CSS selector based on element text? [duplicate]
- CSS @font-face not working with Firefox, but working with Chrome and IE
- Opacity of background-color, but not the text [duplicate]
- Formatting numbers (decimal places, thousands separators, localization, etc) with CSS
- How to increase the gap between text and underlining in CSS
- Downloading a Google font and setting up an offline site that uses it
- How to style a div to be a responsive square? [duplicate]
- 3D CSS transform, jagged edges in Firefox
- Change the order of col-*-12 columns in Bootstrap using push/pull
- Expand div from the middle instead of just top and left using CSS
- How to make a element expand or contract to its parent container?
- Defining Variable Variables using LESS CSS
- How can I zoom an HTML element in Firefox and Opera?
- Binding in Control with “class” Attribute
- Chrome renders colours differently from Safari and Firefox
- How to remove outline border from input button
- Angular 2: How to style host element of the component?
- Bootstrap: Position of dropdown menu relative to navbar item
- CSS3 3D Transform doesn’t work on IE11
- IE not rendering CSS properly when the site is located at networkdrive
- Is it possible to give one CSS class priority over another?
- In outlook html email, float does not work
- Why magin:auto is not enough to center position absolute or fixed?
- Image scaling by CSS: is there a webkit alternative for -moz-crisp-edges?
- How to extend css class with another style?