0
I made a div with a border bottom similar to a fold of a page. I am trying to put a centralized image but width and height is not working. I thank you very much! :)
CODE:
.boxDobrado{
background:#53A3B4; /* color de fondo */
color: #FFFFFF; /* color de texto */
overflow: hidden;
position: relative;
width: 200px; /* ancho */
height:80px;
margin-left:20px;
}
.boxDobrado:before{
background: none repeat scroll 0 0 red; /* color de fondo */
border-color: white #ccc; /* color de esquina */
border-style: solid;
border-width: 0px 0px 40px 40px;
content: "";
display: block;
position: absolute;
right: 0;
bottom: 0;
width: 0;
}
<div class="boxDobrado">
<img src="imagem.jpg" height="50px" width="10px"/>
</div>
thanks for commenting. más does not align. it is as if the image leaves the div.
– joaomarcos1
what grotesque error I made. hehe worked by adding . boxDobrado img{width:50px;heght:50px;} thank you =)
– joaomarcos1