I'm facing an issue where the text inside the grid-cart-message or messages-cart-view sections is not centered properly when I assign a height to either of them. The text gets cut off within the div, leading to alignment problems. Any suggestions on how to fix this? Thank you.
.grid-cart-message {
background: none repeat scroll 0 0 #05b1eb;
overflow: hidden;
}
.grid-cart-message #messages-cart-view .error-msg span, .grid-cart-message #messages-cart-view .success-msg span {
color: #fff;
display: block;
float: left;
font-weight: bold;
margin: 1em 0 1em 1em;
text-shadow: 0 -0.1em #666;
}
.grid-cart-message #messages-cart-view {
float: left;
margin: 0 1%;
width: 98%;
}
<div class = "grid-cart-message">
<div class="grid-max">
<div id="messages-cart-view">
<ul class="messages">
<li class="success-msg">
<ul>
<li>
<span>Here is some text that is dynamically assigned.</span>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>