Currently, I am facing an issue with a section on my website that has absolute text overlaying an image. While it looks good on larger screens, I want to implement a media query to adjust it at a specific window size.
Here is what's currently happening: http://gyazo.com/ae86c3b3ab4028f32ad6ad6c846fb151
The floated right image is shifting as the window size decreases. I would like it to remain fixed in place and have the excess cut off by the window without generating a horizontal scrollbar.
HTML
<div class="sectionone">
<div class="headingwrap">
<h2>Heading Text</h2>
<h3>Subheading Text</h3>
<a href="">Free Demo</a>
</div>
<div class="imgwrap">
<img src="resources/chloestore.png">
</div>
</div>
CSS
.imgwrap {
width:70%;
min-width:700px;
overflow: hidden;
float: right;
margin-top:74px;
margin-bottom:1000px;
}
img {
width: 100%;
}
.headingwrap {
margin-top:200px;
margin-left:50px;
float:left;
color: #464646;
letter-spacing: 1.5px;
position:absolute;
}