-1
I’m creating a page where I have a page that gives me problems when using IE and Firefox. The page in question has 3 rectangles next to each other with a small space between them.
For the size of the rectangle I used: width: 25%
.
When I decrease the page part of the rectangle is outside the page and just does not happen with Google Chrome.
I leave here the code of the 3 rectangles:
CSS
#TituloRec1
{
position: absolute;
left: 100px;
top: 450px;
}
#Rectangulo1
{
position: absolute;
left: 100px;
top: 500px;
background: #333;
height: 203px;
width: 27%;
border: 1px solid #000;
Color: #BEBEBE;
}
#TituloRec2
{
position: absolute;
left: 480px;
top: 450px;
}
#Rectangulo2
{
position: absolute;
left: 480px;
top: 500px;
background: #333;
height: 203px;
width: 27%;
border: 1px solid #000;
Color: #BEBEBE;
}
#TituloRec3
{
position: absolute;
left: 860px;
top: 450px;
}
#Rectangulo3
{
position: absolute;
left: 860px;
top: 500px;
background: #333;
height: 203px;
width: 27%;
border: 1px solid #000;
Color: #BEBEBE;
}
HTML
<div id="TituloRec1">
<h3><b>xxxxxxxxxx :</b></h3>
</div>
<div id="Rectangulo1">
<h3> xxxxxxxxxxxxxxxxx:</h3>
<a href="documentos/xxxx.pdf" target="_blank"> Visualizar </a>
<a href="\Documentos\teste.pdf" download="teste.pdf">Download</a>
<br>
<h3> xxxxxxxx:</h3>
<a href="documentos/teste.pdf" target="_blank"> Visualizar </a>
<a href="C:\Users\user\Desktop\Exemplo Final\Documentos\teste.pdf" download="teste.pdf">Download</a>
</div>
<div id="TituloRec2">
<h3><b> xxxxxxxxxxxx :</b></h3>
</div>
<div id="Rectangulo2">
<h3> xxxxxxxxxxx:</h3>
<a href="documentos/teste.pdf" target="_blank"> Visualizar </a>
<a href="\Documentos\teste.pdf" download="teste.pdf">Download</a>
<br>
<h3>xxxxxxxxxxxx:</h3>
<a href="documentos/teste.pdf" target="_blank"> Visualizar </a>
<a href="C:\Users\user\Desktop\Exemplo Final\Documentos\teste.pdf" download="teste.pdf">Download</a>
</div>
<div id="TituloRec3">
<h3><b>xxxxxxx:</b></h3>
</div>
<div id="Rectangulo3">
<h3> xxxxxxxx:</h3>
<a href="documentos/teste.pdf" target="_blank"> Visualizar </a>
<a href="\Documentos\teste.pdf" download="teste.pdf">Download</a>
<br>
<h3> xxxxxxxxx:</h3>
<a href="documentos/teste.pdf" target="_blank"> Visualizar </a>
<a href="C:\Users\user\Desktop\Exemplo Final\Documentos\teste.pdf" download="teste.pdf">Download</a>
</div>
Also add the HTML you are using. It may help to identify your problem.
– André Ribeiro
It needs to be with
position: absolute
? Knowsfloat
?– Guilherme Nascimento
I don’t know. I’ll look up what you do
– ChrisAdler