Reputation: 500
I'm working on a pricing table and have an issue with one of the divs. The middle container should overflow the other containers but it only does it at the left side. The container at the right is overlapping the middle one which it shouldn't. How can I fix this?
I've made a JSfiddle, the problem is with the biggest container (Flex I) in the middle.
Thanks!
Upvotes: 0
Views: 3721
Reputation: 2490
Use
position:relative;
On the containers
And z-index to specify the order of overlaying. I've used inline styles for a quick demonstration but you can tidy this up. By the way I like your design!
Upvotes: 0
Reputation: 28554
.pricingtable {z-index: 1;}
.pricingtable.featuredbig {position: relative;}
Seems to solve the problem.
Upvotes: 3