I'm currently working on a basic content slider, but I've encountered an issue where the container doesn't expand as new content slides in. It seems to be related to the absolute positioning of the content items. If I don't use absolute positioning, the content items don't align properly.
So my question is: How can I make the container (#triv_cont) expand as new content items slide in? And if I shouldn't use absolute positioning for the content items, how do I ensure they line up correctly? I've tried using vertical-align: top without success.
You can view the test code here -> http://codepen.io/lukeocom/pen/mHyBv
The CSS selector for the content items is:
#promos .trivia #triv_cont div
and for the container:
#promos .trivia #triv_cont
I've looked into similar questions on this topic but haven't been able to find a solution...