The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Can I do it with CSS(not using JS)?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #285590

    I have a container. Inside I have two divs. The first div opens and closes with a button click. I need to resize
    the second one which is a scrollable content when the first div opens. I know how to solve this with JS.
    Can I do that with CSS, maybe using flex? Currently my container is overflow: hidden, after opening the first div, the part of
    my second div is not visible. The second divs height is 100%.


    You’d need to provide us with your current code in a demo but clicking usually implies JS.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.