Share Posted April 12, 2022 Hi all, I know this isn't a Greensock issue but I've been trying to figure it out for 2 days and I'm not sure where to ask this type of question. Feels like its a really simple thing but I am just not a css/html person. :S Can anyone recommend a good html/css forum? I'm going to illustrate my problem here just incase somebody has a quick answer. Thank you!! Ok... My code pen has 4 divs and I want to layer them on top of each other so I can fade them in and out using greensock. I can get the divs to layer on top of each other by changing their css to position: absolute instead of relative but doing that removes the 4 divs from the parent/document flow so the rest of the elements on the page just go behind the divs instead of under them. How can I group and layer Divs on top of each other while also maintaining the inline flow? Currently it looks like this: This is the desired result, 4 divs layered on top of each other with the parent div still maintaining its height. Big Thanks! See the Pen OJzxvrJ by chriscalabrese (@chriscalabrese) on CodePen Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now