I'm trying to make a border on the right site of my div as a sort of break point, to start my content afterwards. However, the div takes up the whole width of the page, and I can't fix it. I've tried max-width, I've tried making it into a inline-block, nothing.
.15Info {
display: inline-block;
padding-top: 50px;
height: auto;
max-width: 100%;
}
.package {
padding-left:70px;
margin-top: 15px;
}
.monthlyPrice {
padding-left:55px;
font-size:52px;
font-weight: bold;
color: #277FD8;
}
.differentbandwidth {
margin-left: 7px;
text-align: center;
padding: 15px;
border-style: solid;
border-color: #277FD8;
border-width: 3px;
border-radius: 8px;
max-width: 270px;
}
.border {
border-right: thick solid #277FD8;
}
<div class="15Info border">
<h1 class="package">Cable 15</h1>
<h3 class="monthlyPrice">\$39.99</h3>
<h3 class="differentbandwidth">\$69.99 for unlimited</h3>
</div>