Answers for "cool underline style in css"

10

css underline color

u
{
	text-decoration: underline;
  	text-decoration-color: red;
}
example of use: (in html)

<p>The word <u>CAT</u>, is underlined </p>
Posted by: Guest on March-28-2020
0

add expanding underline on page load css

#sec {
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
}
#sec:after {
  content: '';
  display: block;
  margin: auto;
  height: 3px;
  width: 0px;
  background: transparent;
  transition: width .5s ease, background-color .5s ease;
}
#sec:hover:after {
  width: 100%;
  background: blue;
}
Posted by: Guest on July-12-2020

Browse Popular Code Answers by Language