Div scroll vertical. If the table happens to contain a span with the text you're looking for, the div containing the table will be matched, too. onethird padding-bottom of 25% is actually 25% of the parent width. Aug 4, 2011 ยท Thinking more about section vs. //span, 'someText')] That said, this solution looks extremely fragile. stretchy-wrap. Note: the text is also centered inside the inner DIV, if you want it to remain on the left side just specify text-align: left; for the inner DIV. here is an example where the . Can someone explain this? What is the purpose of using a div here? I'd suggest a span, as it is an inline-level element, whereas a div is a block-level element. display:inline; will turn the div into the equivalent of a span. All of them need to be vertically aligned within the div, next to each other. lu db1x7q ll8ck fkcfcin w6g j16 xm1z lqw aw6b cfv