Search
 
SCRIPT & CODE EXAMPLE
 

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;
}


<ul>
  <li>Item 1</li>
  <li>Another Item</li>
  <li>This Is Nice</li>
  <li>Another</li>
  <li>And Another</li>
  <li>And Yet Another</li>
</ul>
Comment

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;
}
Comment

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

<ul>
  <li>Item 1</li>
  <li>Another Item</li>
  <li>This Is Nice</li>
  <li>Another</li>
  <li>And Another</li>
  <li>And Yet Another</li>
</ul>
Comment

PREVIOUS NEXT
Code Example
Css :: split group of flex item 
Css :: uytutyu 
Css :: css not hover div right hide 
Css :: text below filter css using pseudo 
Css :: css target flex parent child 
Css :: how to keep style after click 
Css :: drag stretch effect in html css 
Css :: zoom image on click css 
Css :: docker registry fetch 
Css :: overflow scroll not working in columns 
Css :: Add macOS-esque DropShadow to Images 
Css :: sass dummy folder site download 
Css :: overwrite theme css in parent css 
Css :: linear gradient 
Css :: write mode css 
Css :: arranging the paragraph in css 
Css :: css animation 3d effect 
Typescript :: req.user typescript 
Typescript :: running scripts is disabled on this system nodemon 
Typescript :: what type of radiation is 5g 
Typescript :: Do not use "// @ts-ignore" comments because they suppress compilation errors 
Typescript :: check if key exists in json typescript 
Typescript :: flutter network image show loading indicator 
Typescript :: How To Fix Error PS1 Can Not Be Loaded Because Running Scripts Is Disabled On This System In Angular 
Typescript :: selenium get all child elements python 
Typescript :: Visual Studio Code Typescript region folding 
Typescript :: where will @componentScan look 
Typescript :: adonis where has 
Typescript :: benefits of multiprogramming 
Typescript :: scroll to top angular 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =