I'm working on a project where I have to make some angled divs that overlap. There's a description which angles over a relevant image. I thought I had this working right until I tested in chrome. At first I thought maybe it was a clearfix issue cause the image wasn't showing up at all, but now I'm at a loss
I want this to be the result and what I see in most browsers
I am doing most of my coding in Dreamweaver. My CSS is as follows.
.description{
width: 40%;
height: 100%;
background: #BFA8DB;
box-sizing: border-box;
}
.image{
width: 60%;
height: 100%;
box-sizing: border-box;
border-left: 100px solid #BFA8DB;
border-bottom: 350px solid transparent;
background: #000 url('images/Iceland.jpg');
background-position: -200px -200px;
overflow:hidden;
}
.titleLeft{
position: relative;
padding: 50px 50px 0 50px;
float:left;
}
My HTML (forgot to post this earlier)
<div class="description">
<div class="titleLeft">
<font class="whiteArticleTitle">
Title
</font>
</div>
<div class="hobbyContentLeft">
text here <br><br>
second paragraph
<br><br>
<a href="/">My Instagram</a>
<a href="/" class="whiteArticleLink">Blog Posts</a>
</div>
</div>
<div class= "image"></div>