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

Home Forums CSS Bootstrap Collapse Using a Button to Show Additional Text

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

    I’m trying to use Bootstrap Collapse in my project and I’m facing some issues (button moves below and I can’t figure out how to show some lines of text before expand).

    I want to use a button for the collapse to expand the box downward (to show more text).

    I want some lines of text to be already present there and upon button click it should expand.

    Here is the pen.

    This is what I want this to be, before expanding (the button should resize in height upon expand).


    Well, I’ve made some adjustments, looks a bit better now from what it was.

    A few Problems:

    Button alignment issues.
    Box extra padding before collapse.

    Here is the New Code

    Can we have a 100% height button which should re-size according to the collapsible contents.

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