i want to make a div with black background but the text should be transparent with red border. Any idea?
till now i have been able to make my text transparent but when i add background color to the div, it makes text background with the same color.
HTML:
<div class="text">
<h1>EXPERIENCES</h1>
</div>
CSS:
.text {
position: absolute;
top: 0;
background-color: #000;
overflow: hidden;
}
.text h1 {
font-size: 112px;
-webkit-text-stroke-color: red;
-webkit-text-fill-color: transparent;
-webkit-text-stroke-width: 1px;
}