<!DOCTYPE html>
<body>
<div class="color-transparent"></div>
<div class="text">123321</div>
<style>
div {
width: 100px;
height: 25px;
}
.color-transparent {
position: absolute;
background: rgba(0, 0, 255, 0.267);
}
</style>
</body>
</html>
<!DOCTYPE html>
<body>
<div id="tr"><div class="color-transparent"></div></div>
<div class="text">123321</div>
<style>
div {
width: 100px;
height: 25px;
}
#tr{
background:white;
position: absolute;
}
.color-transparent {
background: rgba(0, 0, 255, 0.267);
}
</style>
</body>
</html>