Hi guys
How do I make a transparency effect as here http://blackwaterus.com/ (both header and white content area under the image) :-)
Thanks in advance :-)
Martin
Hi mar10nlund!
This is the CSS he used to create that effect,
#header {
background-color: transparent;
background-image: none, linear-gradient(to top, rgba(7, 15, 25, 0.75) 0px, rgba(7, 15, 25, 0.8) 10px, rgba(7, 15, 25, 0.86) 20px, rgba(7, 15, 25, 0.9) 30px, rgba(7, 15, 25, 0.94) 40px, rgba(7, 15, 25, 0.98) 50px, rgba(7, 15, 25, 0.99) 60px, #070f19 70px);
background-position: center top;
background-repeat: repeat;
border-bottom: medium none;
box-shadow: 0 1px 0 0 rgba(5, 38, 57, 0.05);
}
#main {
background-image: none, linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0px, rgba(255, 255, 255, 0.8) 5px, rgba(255, 255, 255, 0.86) 10px, rgba(255, 255, 255, 0.9) 20px, rgba(255, 255, 255, 0.94) 30px, rgba(255, 255, 255, 0.98) 50px, rgba(255, 255, 255, 0.99) 60px, #ffffff 70px);
background-position: center top;
background-repeat: repeat;
background-size: auto auto;
box-shadow: 0 -1px 0 0 rgba(5, 38, 57, 0.05);
}
Cheers!
Elliott