I have a parent container inside which one more container is placed. The child container has a text inside P tag. Even though width is defined to the container. below is the HTML lines
<div class="textareaPopupWrapper" style="background-color: black;">
<div class="popupControl">
<p>This is the text to be display on Popup opens.</p>
</div>
Style for this elements are like below
.textareaPopupWrapper {
color: white;
display: block;
height: 100px;
left: 103%;
position: relative;
width: 100px;}
.popupControl {
color: red;
float: left;
height: auto;
position: absolute;
width: 90px;}
You forgot to close main div. Just check, may be it is causing problem.