cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              	<div class="container">
		  <ul>
      <li>Categories</li>
      <li><a href="">All</a></li>
      <li><a href="">Featured</a></li>
      <li><a href="">News</a></li>
      <li><a href="">Events</a></li>
      <li><a href="">Sports</a></li>
      <li><a href="">Business</a></li>
      <li><a href="">Money</a></li>
      <li><a href="">Travel</a></li>
      <li><a href="">Environment</a></li>
      <li><a href="">Technology</a></li>
		  </ul>
	</div>
            
          
!
            
              /* Begin demo styles */

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

a {
  text-decoration: none;
}

/* End demo styles */

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.container ul {
  list-style-type: none;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
	background:
		/* Shadow covers */
		linear-gradient(90deg, white 30%, rgba(255,255,255,0)),
		linear-gradient(90deg, rgba(255,255,255,0), white 70%) 100% 0,
		
		/* Shadows */
		radial-gradient(0 50%, farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)),
		radial-gradient(100% 50%,farthest-side, rgba(0,0,0,.2), rgba(0,0,0,0)) 100% 0;
	background:
		/* Shadow covers */
		linear-gradient(90deg, white 30%, rgba(255,255,255,0)),
		linear-gradient(90deg, rgba(255,255,255,0), white 70%) 100% 0,
		
		/* Shadows */
		radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
		radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 100% 0;
	background-repeat: no-repeat;
	background-color: white;
	background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
	
	/* Opera doesn't support this in the shorthand */
	background-attachment: local, local, scroll, scroll;
 }

.container ul li {
  color: darkgrey;
  display: inline-block;
}

.container ul li:first-child {
  padding: 1em 2em;
}

.container ul li a {
  font-weight: bold;
  color: crimson;
  display: inline-block;
  padding: 1em;
}

@media screen and (min-width: 1140px) {
  .container ul li a {
    background: lightgrey;
}
            
          
!
999px
Loading ..................

Console