Skip to content

Instantly share code, notes, and snippets.

@jrsalunga
Created January 11, 2013 00:42
Show Gist options
  • Select an option

  • Save jrsalunga/4507054 to your computer and use it in GitHub Desktop.

Select an option

Save jrsalunga/4507054 to your computer and use it in GitHub Desktop.

Revisions

  1. jrsalunga created this gist Jan 11, 2013.
    16 changes: 16 additions & 0 deletions gistfile1.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    .element {
    position:relative;
    z-index:1;
    }

    .element:before {
    content:"";
    position:absolute;
    z-index:-0;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background:url("path-to-image.jpg");
    opacity:0.5;
    }