Skip to content

Instantly share code, notes, and snippets.

@madrobby
Created October 17, 2012 16:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save madrobby/3906580 to your computer and use it in GitHub Desktop.
Save madrobby/3906580 to your computer and use it in GitHub Desktop.
CSS background from hell
position: relative;
display: block;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
height: 50px;
border-radius: 0px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
border: none;
background: #f0f0f0;
margin: 0 0 -5px 0;
background-attachment:
scroll, scroll;
background-position:
0 -2px, 0 0;
background-repeat:
repeat-y, no-repeat;
background-size:
100% 22px, 100% 100%;
background-image:
-webkit-linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0) 95.45%, rgba(0,0,0,0.1) 95.4501%, rgba(0,0,0,0.1)),
-webkit-linear-gradient(-90deg, #fafafa, #e9e9e9);
background-image:
-moz-linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0) 95.45%, rgba(0,0,0,0.1) 95.4501%, rgba(0,0,0,0.1)),
-moz-linear-gradient(-90deg, #fafafa, #e9e9e9);
background-image:
-ms-linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0) 95.45%, rgba(0,0,0,0.1) 95.4501%, rgba(0,0,0,0.1)),
-ms-linear-gradient(-90deg, #fafafa, #e9e9e9);
background-image:
linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0) 95.45%, rgba(0,0,0,0.1) 95.4501%, rgba(0,0,0,0.1)),
linear-gradient(-90deg, #fafafa, #e9e9e9);
border-top: 2px solid #fafafa;
padding: 4px 10px 2px;
color: #444;
font: 17px/22px FilmotypeBrooklyn, sans-serif;
resize: none;
overflow: auto;
border-top: 2px solid #f0f0f0\0/ !important;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment