<div class="container"> <div class="element">111111</div> </div>
.container{ height:300px; width:300px; background:blueviolet; } .element{ width:100px; background:red; line-height:50px; }