Answers for "html active link"

CSS
4

html link color

<a href="Link Here" style="color: Color Here"><b>Link Name</b></a> <!--- You dont need the bold tags btw ---!>
Posted by: Guest on September-03-2020
1

link active css

a:active {
  background-color: #34D399;
}
Posted by: Guest on May-05-2021
2

active link

# Foward slash is equal to homepage. For all others you use IN keyword.
<li 
  {% if '/' == request.path %}
  	class="nav-item active mr-3"
  {% else %}
  	class="nav-item mr-3"
  {% endif %}
>

<li 
  {% if 'about' in request.path %}
      class="nav-item active mr-3"
  {% else %}
      class="nav-item mr-3"
  {% endif %}
>
Posted by: Guest on November-24-2020

Browse Popular Code Answers by Language