Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to apply the gradient over your content, you can use <code>:after</code> on an element. You can change the <code>z-index</code> also on your elements so that it appears above/below other ones. You can change your opacity on this <code>:after</code> to make it more transparent as well. Cheers!</p> <pre><code>.yourElementClass:after { position: absolute; left: 0; right: 0; top: 0; bottom: 0; content: ''; opacity: 0.3; background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,0.01) 0%, rgba(33,33,33,1) 87%, rgba(0,0,0,1) 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.01)), color-stop(87%,rgba(33,33,33,1)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,0.01) 0%,rgba(33,33,33,1) 87%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,0.01) 0%,rgba(33,33,33,1) 87%,rgba(0,0,0,1) 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,0.01) 0%,rgba(33,33,33,1) 87%,rgba(0,0,0,1) 100%); /* IE10+ */ background: radial-gradient(ellipse at center, rgba(255,255,255,0.01) 0%,rgba(33,33,33,1) 87%,rgba(0,0,0,1) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#03ffffff', endColorstr='#000000',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */ } </code></pre> <p>Or if you're willing to change html, add a <code>div.cover</code> somewhere and apply this css to that element! The jsfiddle reflects this approach.</p> <p>Gradient Generator here:</p> <p><a href="http://www.colorzilla.com/gradient-editor/" rel="nofollow">http://www.colorzilla.com/gradient-editor/</a></p> <p><a href="http://jsfiddle.net/5T953/1/" rel="nofollow">JSFIDDLE</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload