I am currently working on adjusting font sizes to match another one, but I am facing an issue where the container's size is also being affected, resulting in misalignments.
I have experimented with different display types (block, inline) and even tried using flex
, but it did not yield the desired outcome. Is there a CSS solution for this?
.block3 {
display: flex;
background-color: #a8a9ad;
padding: 50px 30px;
overflow: none;
justify-content: space-evenly;
}
.address {
display: flex;
text-align: left;
flex-direction: column;
justify-content: left;
}
.address span {
text-align: left;
}
.address p {
margin: 5px;
padding-left: 5px;
}
.address h2 {
/* display: inline-flex; */
font-size-adjust: 0.6;
transform: scale(0.8, 1);
text-align: left;
}
.terms-of-service {
text-align: left;
}
<div class="block3">
<div class="address col-content">
<span><h2>CORPORATE CLEANING SERVICES LTD.</h2></span>
<p>#106 – 20285 Stewart Crescent,</p>
<p>Maple Ridge, BC, V2X 8G1</p><br>
<p>Toll Free: 1-866-543-4666</p>
<p>Telephone: 604-465-4699</p>
<p>Fax: 604-465-4674</p>
</div>
<div class="terms-of-service col-content">
<h2>Terms of Service</h2>
<p>This site uses cookies. By continuing to use this site you are agreeing to our use of cookies. Please refer to Google's Privacy Terms and Terms of Service to see how cookies are used.</p>
</div>
</div>
Here, my main struggle is maintaining the left alignment of my <h2>
element, but I haven't found a way to achieve this yet...
If you have any suggestions or solutions, I would greatly appreciate your help. Thank you!