Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to provide button style to an html actionlink

how to provide button style to an html actionlink

like image 835
ilfa hasan Avatar asked Dec 19 '25 13:12

ilfa hasan


1 Answers

Update

This goes inside your CSS file:

.roundedButton {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;

    color: #181818;
    color: rgba(0,0,0,0.4);
    width: 65px;

    padding: 8px 12px;
    border: none;
    outline:none;
    outline:0;

    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;

    -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.4);
    -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.4);
    box-shadow: 0px 1px 3px rgba(0,0,0,0.8);
}

I believe this may be what you're after.

Html.ActionLink("ActionLink Text", null, new { @class="roundedButton"})

Also, I just found this page: Edit Html.ActionLink output string

The code in the question looks like they've got it styled.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!