The title sums it up pretty much, I can get the rhombus drawn easily enough but when I add an image to the background it adds more sides to the shape. I can't seem to figure out why this is happening when the background image is added. Any advice would be appreciated
Here is the code I have, excuse the inline css I am only doing it like this until I have a working solution then I will transfer the css into the external css file.
A demo can be found here
<div class="row">
<div class="col-sm-4" >
<div style=" margin:50px auto;
width:200px;
height:200px;
overflow:hidden;
border-radius: 28px;
transform: rotate(45deg);
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);">
<img src="images/stripsResize.jpg" alt="Chicken Strips" style="transform:
rotate(-45deg);
-ms-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
top:-100px;
left:-100px;">
</div>
</div>
<div class="col-sm-4">
<div style="width:200px;
height:200px;
overflow:hidden;
border-radius: 28px;
transform: rotate(45deg);
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
background-color: green;">
</div>
</div>
<div class="col-sm-4">
<h1>Desert</h1>
</div>
</div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…