I was playing around with javascript, css, + html and I want to make a div that shows only a section of a separate full image (Similar to how a "layer mask" would in digital art). Is there any way that I could do this?
My code looks like this:
css:
#fulldiv {
position: absolute;
z-index: 9;
border: 2px solid #302058;
text-align: center;
height: 150px;
}
#browserhead {
width: 100px;
padding: 5px;
z-index: 10;
background-color: #302058;
color: #ffffff;
}
html:
<div id="fulldiv">
<div id="browserhead">Title</div>
</div>
I'm very new to much of coding, and I'm not the best at explaining what I mean, so my apologies if this doesn't make sense to anybody.