This question already has an answer here:
I managed to do this, but its really complicated, and you cant resize your browser widnow becaouse everything is getting messy.
Thats how it looks(but only in full screen 1920x1080):
And thats my over complicated way to do this:
HTML:
<div class="head">
<img src="panoramic.jpg">
<div class="jatax">
<div class="relative">
<span> ABCDJ </span>
<div class="opacity"></div>
</div>
</div>
</div>
CSS:
img {
width:100%
}
div.jatax {
position: absolute;
top: 30%;
left: 30%;
font-size: 200px;
color: #353535;
}
div.head {
position: relative;
}
div.opacity {
position: absolute;
opacity: 0.5;
background-color: white;
z-index: 1;
overflow: auto;
padding: 35px;
top: 0;
left: 0;
width: 635px;
height: 220px;
z-index: 1;
}
div.relative {
position: relative;
border: 5px solid white;
width: 705px;
height: 290px;
}
div.relative span {
display: block;
height: 220px;
width: 635px;
padding: 40px;
position: absolute;
z-index: 2;
}
The question is: How to do this in a simple way ?
Here it's just one picture so i could use photoshop, and then just use this modified img, BUT actually i want to use slide show instead of single img.
Aucun commentaire:
Enregistrer un commentaire