Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

CSS hide first li separator on each line - responsive horizontal css menu

ul {
  font-size: 0;
  overflow: hidden;
  padding: 0;
}

li {
  font-size: 16px;
  display: inline-block;
  margin: 0;
  padding: 0;
  color: gray;
  position: relative;
  padding-right: 2rem;
}

li::before {
  content: "|";
  position: relative;
  left: -1rem;
  font-weight: bold;
  color: black;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #CSS #hide #li #separator #line #responsive #horizontal #css #menu
ADD COMMENT
Topic
Name
9+1 =