Is there a way i can add below css as inline css using C# from codebehind
CSS
.slide .btn_six::after {
content: " ECHNOLOGY";
}
HTML
<div class="slide">
<a target="_blank" href="#" class="post-badge btn_six">T</a>
</div>
I have to list multiple articles and each article belongs to a category and each category i have to show in an animated manner where only first caharacter of word will be visible and when user hovers over it it then reveal whole category name as shown in template link.
I want to do this using C# from the codebehind file itself as it will be easy
I looked for example but could not find any relevant example
.post-badge { visibility: hidden; }and.post-badge:first-letter { visibility: visible; }?aelement might hold the entire word, e.g., Technology. Setting it tovisibility: hiddenbut with:first-letterset to visible, you’ll see T but not echnology, though it will reserve space. You can add a third rule that sets the whole element to visible on hover.