Friday, December 25, 2020

MVC Bootstrap dropdown menu and up down symbols

MVC  Bootstrap has a super easy way to create dropdown menus and add up/down symbols on these menus. Basically we just need to include this style in the css file.


/* Style to reverse the caret icon from pointing downwards to upwards */

.dropdown.open .dropdown-toggle .caret {

    border-top-width: 0;

    border-bottom: 4px solid;

}


Please see a fiddle in action at https://jsfiddle.net/pranavnk/o3z7yxf8/4/


reference: https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_ref_js_dropdown_icon&stacked=h


No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...