I want to try and have the div that contains the image on the left to be centered vertically. I have tried numerous things but I keep running into issues.
weekly-middle
is the container div to the div which is left
which contains the image that I want centered.
The text is already centered.
.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>
Solution provided in comment below
Refer to Joseph Marikle comment with link to JSFiddle.