When there’s no height given it pulls from the bottom content, how can I prevent this from happening? http://newtest180.blogspot.com/
Without Height:
Never let society to turn you into a grain of sand on the beach. Be different, be individual. Refuse to look alike with others. Leave your herd, only then you will have a real name and till then your name will remain as the grain sand. ~ Mehmet Murat ildan
<div style="width:606px" onclick="myq=document.getElementById('myquotee'); myq.style.display='block';this.style.display='none'">
<div style="cursor: pointer; width: 604px; height: 65px; background-color:#000000; border: 1px solid #BF598E;">
</div></div>
<div id="myquotee" style="display: none;">
<blockquote style="background-color:#000000;width:606px; height:67px;margin:0px;overflow: hidden;">
<p style="font-family:'Times New Roman';font-size:16px;color:white;margin:0px;"><q>Never let society to turn you into a grain of sand on the beach. Be different, be individual.<br /> Refuse to look alike with others. Leave your herd, only then you will have a real name and till<br /> then your name will remain as the grain sand.</q> ~ <em>Mehmet Murat ildan</em></p></blockquote></div>
I also don’t understand why you’re still using an HTML structure you have been told is incorrect, even after you have been shown the correct structure and had it explained to you in detail.
There should be no need to add set heights to any text block elements like this, content should dictate height.
The gap at the bottom is due to the bottom padding on this element
When you click on the 1st one, it pulls the content below. When you click on the one below it doesn’t pull the content at all. The 1st one has no given height set. The 2nd one does.
But when there’s a given height, then the text doesn’t wrap. It works fine with a given height set, but then the text doesn’t wrap.
To help you understand the dynamics involved. please open the demo page afresh in Firefox, ZOOM Text Only a few clicks larger on that demo page, THEN click the blank box to show the text that “pulls up” and then click the lower box to show the text in the fixed height box. You will see that once the text is visible, the height of the text box determines the top position of the content below it.