I've been attempting to center the div that holds the image on the left vertically, but I'm facing some challenges in achieving that. Any suggestions or solutions would be greatly appreciated.
The container div for the left div containing the image is called weekly-middle
.
The text in the container is already centered as desired.
.weekly-middle {
text-align: center;
width: 100%;
/*height:100%;*/
border: none;
border-collapse: collapse;
margin: 0px;
padding-top: 56px;
padding-bottom: 56px;
content: "";
display: table;
/*clear: both;*/
}
.left {
text-align: left;
padding: 20px;
width: 100px;
float: left;
/*padding-top: 56px;
padding-bottom: 56px;*/
vertical-align: middle;
height: 300px
}
.right {
margin-left: 100px;
float: left;
padding-top: 56px;
padding-bottom: 56px;
}
<div class="weekly-middle teal">
<div class="left">
<img width="50" height="50" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Wiktionary_small.svg/350px-Wiktionary_small.svg.png" />
</div>
<div class="right">
<h1>Some Title</h1>
<p class="title">Problems Solved</p>
</div>
</div>
You can find a solution in the comment section below
Please refer to Joseph Marikle's insightful comment with a link attached to a JSFiddle for further assistance.