Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, December 26, 2017 9:09 AM
What is the bootstrap css class for @Html.ActionLink(?
how can i change the color?
must i create a class in bootstrap css?
All replies (3)
Tuesday, December 26, 2017 12:53 PM
What is the bootstrap css class for @Html.ActionLink(?
Unclear...
how can i change the color?
Simple... in css assign the color attribute.
must i create a class in bootstrap css?
No, generally you want to override the Bootstrap CSS. This can be done with inline CSS or in a referenced CSS file.
I suggest that you try learning CSS. You can get started here...
https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS
Tuesday, December 26, 2017 7:23 PM
an html action link renders an anchor (<a>). see bootstrap docs.
Wednesday, December 27, 2017 8:15 AM
<g class="gr_ gr_50 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Punctuation only-ins replaceWithoutSep" id="50" data-gr-id="50">Hi</g> <g class="gr_ gr_5 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="5" data-gr-id="5">zularl</g>,
Sir, I guess this is what you want:
1: Simple Working Example
@Html.ActionLink("ddddd","Index",null,new {@Style="color:red" })
Then the text 's color is red at page;
and if you want to add <g class="gr_ gr_522 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep gr-progress" id="522" data-gr-id="522">bootstrap class</g>;
2: Simple Working Example
@Html.ActionLink("ddddd", "Index", null, new { @class = "btn btn-success" })
Then it likes a button at page :)
Reference:
https://www.w3schools.com/bootstrap/bootstrap_buttons.asp
With regards, Angelina Jolie