I'm trying to make my div size the size of my background image. When I set a background image it gets cut off (see image below). I've tried setting background-size to 100% width and height.
My Code Below
.centerimage {
display: block
margin-left: auto;
margin-right: auto;
width: 100%;
}
.Internet{
background-image: url("content/happylaptoplady.png");
margin-top: 100px;
width: 250px;
float: left;
margin-right: 30px;
margin-left: 130px;
text-align: center;
}
.Phone{
margin-top: 100px;
float: left;
width: 250px;
margin-right: 30px;
text-align: center;
}
.Television{
margin-top: 100px;
float: left;
width: 250px;
margin-right: 30px;
text-align: center;
}
.Service {
text-align: center;
font-weight: 600;
}
.Dollar {
font-size: 20px;
}
.Benefits {
float: left;
}
<img src="content/severroom.png" class="centerimage" />
<div class="Internet">
<h3>INTERNET</h3>
<h7>CABLE, DSL & RURAL WIRELESS</h7>
<h4 class="Pricing">From <span class="Dollar">$29.99</span> per month!</h4>
<ul class="Benefits">
<li class="Benefits">UNLIMITED PLANS AVAILABLE</li>
<li class="Benefits">NOW WITH LOWER PRICES</li>
<li class="Benefits">FASTER SPEEDS - UP TO 60 MBPS!</li>
</ul>
</div>
<div class="Phone">
<h3>PHONE</h3>
<h7>RESIDENTIAL & COMMERCIAL</h7>
</div>
<div class="Television">
<h3>TELEVISION</h3>
<h7>SHAW DIRECT / INTERNET TV</h7>
</div>