After researching several solutions, none seem to solve the issue I am experiencing. My code is meant to create two red colored boxes as shown below:
.redboxes-horz {
width: 100%;
margin-bottom: 50px;
height: auto;
top: 0;
right: 0;
}
.redbox-horz-lg {
width: 76.05%;
background: rgba(200, 16, 46, 1);
padding: 17px 20px;
top: 0;
right: 0;
left: calc(23.95%);
position: relative;
height: auto !important;
text-align: left !important;
}
.redbox-horz-sm {
position: absolute;
width: 22px;
height: 22px;
background: rgba(200, 16, 46, 1);
position: absolute;
bottom: -22px;
left: calc(23.95% - 22px);
}
.redbox-horz-lg h1 {
color: #fff;
padding: 0;
margin: 0;
font-size: 31px;
font-weight: normal;
line-height: 1.1;
}
<div class="redboxes-horz">
<div class="redbox-horz-sm"></div>
<div class="redbox-horz-lg">
<h1>Structural Discovery Branding Standards Heading</h1>
</div>
</div>
This is the current appearance:
https://i.stack.imgur.com/6aAd0.png
The problem arises when trying to align the heading to the left. Changing the display to inline-block causes the entire CSS layout to malfunction.