I need to anchor a <div>
to the bottom left corner of a table cell in a table that is in a responsive web page. Something like float: left;
and float: bottom;
together.
The cell has other <div>
and <p>
content programmatically determined and varying in height. The table HTML is in a code block on a Squarespace-built, responsive website. On page load, I programmatically insert content into the <div>
and <p>
elements in the <td>
.
The only solution I’ve come up with so far to anchoring one of the <div>
s to the bottom left <td>
corner is to put position: relative;
on the <td>
and then
position: absolute;
left: 0;
bottom: 0;
on the <div>
.
But that breaks responsiveness. It gives me intolerable horizontal overflow scrolling on the <body>
element.
So, I need either another way to anchor the <div>
that won’t break responsiveness or a way to restore responsiveness if I use the current method
This is tagged HTML/CSS, but I’m wondering whether there is a jQuery solution.