Good morning, I have an html and every now and then I need to insert an image that is a "}" to determine that in a song it will repeat that part.
As my text adapts to the size of the screen, when it moves it changes size and the image is fixed, what I need is that it adapts to the size of the text.
In the planning I had, I started with a very good idea, I left the div that has the praise without Height
, that way it stays automatic, staying at the exact height of the text. If I put the div where the key is always the same height (even when the other is resized).
Below is an image where I highlighted the two div's to understand it better:
IfIsomehowgetit,Ileavemyanswer,untilthen,Iacceptanyhelporidea.
CSS:
#louvor{background-color:rgba(00,00,00,0.8);margin-left:1%;width:93%;position:relative;float:left;font-size:3.5vw;text-align:left;color:white;text-transform:uppercase;text-shadow:1px1pxblack;font-family:"Futura XBlk BT", Times, serif;
}
HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../../css/style.css" rel="stylesheet" />
</head>
<body id="principal">
<div id="estrutura">
<div id="logo-louvor"></div>
<div id="louvor">
<font color="yellow">CORO:</font><br>
AS MINHAS MÃOS TRAZEM CHAGAS TÃO FUNDAS<br>
QUE TANTA AMARGURA EU PUDE ABRIGAR<br>
DE TODA DOR DE VERGONHA E PECADO<br>
EU FUI COROADO PARA TE SALVAR<br>
</div>
<div id="inform">
<img src="../../imagens/chaves.png">
</div>
</div>
</body>
</html>