I am using display: table;
on the container and display: table-cell;
on the child elements, to highlight some posts horizontally on a page.
The thing is, I have no idea as to how to make them responsive, i.e. as the screen-size becomes smaller, each child (i.e. table-cell
) should become proportionately smaller, whilst continuing to stay aligned horizontally.
How do I do this?
- Example Code: http://www.codepen.io/anon/pen/dCLgq
- Demo: http://codepen.io/anon/full/dCLgq