here is a simplified fiddle of what I'm working on:
http://jsfiddle.net/acolombo/xxab2345/
HTML:
<div id="container">
<div id="DivB">Just another text.</div>
<div id="DivA">Lots and lots of text. Lots and lots of text.Lots and lots of text. Lots and lots of text. Lots and lots of text. Lots and lots of text. Lots and lots of text. Lots and lots of text. Lots and lots of text.</div>
</div>
CSS:
#container {
overflow: hidden;
}
#DivA {
overflow: hidden;
background: #ccc;
}
#DivB {
float: right;
background: #000;
color: #FFF;
}
I've tried in many ways to vertical align the shorter text with the longer one keeping everything responsive but I can't seem to find a valid solution.
All the similar questions I found use something not dynamic, let's say a fixed width, height, margin or anything else, and these solutions won't work for my problem. Thanks!
Edit: Sorry, I forgot to write that the shorter line still needs to keep its size like in the example I posted, the longer text needs to shrink besides it while it stays still