Copied to Clipboard!

List ul/li element design using CSS

Style: Bottom line(underline)

 
.lists {
  position: relative;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: -30px;
}
.lists li {
  position: relative;
  margin-left: 30px;
}
.lists li a {
  position: relative;
  display: block;
  font-family: var(--ff);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  color: #7c7c7c;
  transition: all .2s;
}
.lists li a:hover {
  color: #3c3c3c;
}
.lists.bottom-line li {
  float: left;
  width: calc(33.33% - 30px);
}
.lists.bottom-line li::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: red;
  transition: all .5s;
}
.lists.bottom-line li:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}
.lists.bottom-line li a {
  border-bottom: 1px solid #f5f5f5;
}
.lists.bottom-line li a:hover {
  color: #3c3c3c;
  padding-left: 10px;
}  
    


Style: Dash

 
.lists {
  position: relative;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: -30px;
}
.lists li {
  position: relative;
  margin-left: 30px;
}
.lists li a {
  position: relative;
  display: block;
  font-family: var(--ff);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  color: #7c7c7c;
  transition: all .2s;
}
.lists li a:hover {
  color: #3c3c3c;
}
.lists.marker li {
  width: 100%;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  margin: -0.5px 0;
  margin-left: 30px;
  transition: .25s;
}
.lists.marker li:hover {
  border-color: #dfdfdf;
  background: #f5f9fa;
  z-index: 9;
}
.lists.marker li a:hover {
  padding-left: 20px;
  z-index: 9;
}
.lists.marker li a::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  left: 5px;
  width: 0;
  height: 0;
  transition: all .15s;
}
.lists.marker.dash li a::after {
  height: 2px;
  background: red;
  left: 0;
}
.lists.marker.dash li a:hover::after {
  width: 10px;
  left: 0;
}
  

Style: Dot

 
.lists {
  position: relative;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: -30px;
}
.lists li {
  position: relative;
  margin-left: 30px;
}
.lists li a {
  position: relative;
  display: block;
  font-family: var(--ff);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  color: #7c7c7c;
  transition: all .2s;
}
.lists li a:hover {
  color: #3c3c3c;
}

.lists.marker li {
  width: 100%;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  margin: -0.5px 0;
  margin-left: 30px;
  transition: .25s;
}
.lists.marker li:hover {
  border-color: #dfdfdf;
  background: #f5f9fa;
  z-index: 9;
}
.lists.marker li a:hover {
  padding-left: 20px;
  z-index: 9;
}
.lists.marker li a::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  left: 5px;
  width: 0;
  height: 0;
  transition: all .15s;
}
.lists.marker.dot li a::after {
  border-radius: 50%;
  background: plum;
}
.lists.marker.dot li a:hover::after {
  height: 10px;
  width: 10px;
  left: 0;
}
  

Style: Square

 
.lists {
  position: relative;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: -30px;
}
.lists li {
  position: relative;
  margin-left: 30px;
}
.lists li a {
  position: relative;
  display: block;
  font-family: var(--ff);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  color: #7c7c7c;
  transition: all .2s;
}
.lists li a:hover {
  color: #3c3c3c;
}
.lists.marker li {
  width: 100%;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  margin: -0.5px 0;
  margin-left: 30px;
  transition: .25s;
}
.lists.marker li:hover {
  border-color: #dfdfdf;
  background: #f5f9fa;
  z-index: 9;
}
.lists.marker li a:hover {
  padding-left: 20px;
  z-index: 9;
}
.lists.marker li a::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  left: 5px;
  width: 0;
  height: 0;
  transition: all .15s;
}
.lists.marker.square li a::after {
  left: 5px;
  background: palevioletred;
  height: 10px;
}
.lists.marker.square li a:hover::after {
  width: 10px;
  left: 0;
}
  


Style: Moving Line

 
.lists {
  position: relative;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: -30px;
}
.lists li {
  position: relative;
  margin-left: 30px;
}
.lists li a {
  position: relative;
  display: block;
  font-family: var(--ff);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  color: #7c7c7c;
  transition: all .2s;
}
.lists li a:hover {
  color: #3c3c3c;
}
.lists.patterns li::after {
  position: absolute;
  content: "";
  height: 10px;
  width: 100%;
}
.lists.patterns.line-dash li::after {
  height: 1px;
  top: calc(100% - 5px);
  background: url('../images/lines.svg');
  filter: invert(.7);
}
.lists.patterns.line-dash li:hover::after {
  animation: animatePattern 3s infinite linear;
}
@keyframes  animatePattern {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

Style: Zigzag

 
.lists {
  position: relative;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: -30px;
}
.lists li {
  position: relative;
  margin-left: 30px;
}
.lists li a {
  position: relative;
  display: block;
  font-family: var(--ff);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  color: #7c7c7c;
  transition: all .2s;
}
.lists li a:hover {
  color: #3c3c3c;
}
.lists.patterns li::after {
  position: absolute;
  content: "";
  height: 10px;
  width: 100%;
}
.lists.patterns.zig-zag li::after {
  top: calc(100% - 5px);
  background: url('../images/zig-zag.svg');
  background-size: 15px 15px;
  filter: invert(.75);
}
.lists.patterns.zig-zag li:hover::after {
  filter: invert(.5);
  animation: animatePattern 10s infinite linear;
}
@keyframes  animatePattern {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

Style: Waves

 
.lists {
  position: relative;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: -30px;
}
.lists li {
  position: relative;
  margin-left: 30px;
}
.lists li a {
  position: relative;
  display: block;
  font-family: var(--ff);
  font-size: 1.1rem;
  padding: 10px 0;
  width: 100%;
  text-decoration: none;
  color: #7c7c7c;
  transition: all .2s;
}
.lists li a:hover {
  color: #3c3c3c;
}
.lists.patterns li::after {
  position: absolute;
  content: "";
  height: 10px;
  width: 100%;
}
.lists.patterns.wave li::after {
  top: calc(100% - 10px);
  background: url('../images/waves.svg');
  background-size: 12px 12px;
  filter: invert(.75);
}
.lists.patterns.wave li:hover::after {
  filter: invert(.5);
  animation: animatePattern 12s infinite linear;
}
@keyframes  animatePattern {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}