Here is my code snippet:
#innerLabels,
#innerFields {
display: inline-block;
width: 200px;
height: 200px;
border-style: solid;
border-width: 1px;
vertical-align: top;
}
.innerLabel {
display: table;
border-style: solid;
border-width: 1px;
height: 100px;
width: 80%;
}
.innerLabel div {
display: table-cell;
vertical-align: middle;
border-style: solid;
border-width: 1px;
}
#outterFields {
background-color: red;
width: 60%;
min-width: 300px;
height: 300px;
}
#outterFields div {
display: inline-block;
}
<div id="outterFields">
<div id="innerLabels">
<div class="innerLabel">
<div>hello</div>
</div>
</div>
</div>
I am trying to center the inner most div vertically, but it's not working as expected. I have reviewed solutions for centering elements, but can't seem to find the issue...https://i.sstatic.net/0xhNi.png
The goal is to vertically center the text "hello" without affecting the horizontal alignment. All other divs are correctly positioned next to each other. I only need to adjust the positioning of the "hello" div vertically.