I am facing an issue with a <table>
nested within a <div>
. My goal is to make the <div>
scale according to the size of the <table>
, but this transition seems to fail when I apply display: table;
in my CSS. The <div>
should only be visible upon clicking a button, accompanied by a smooth sliding animation.
input.toggle ~ div
{
transition: .6s all cubic-bezier(0.730, -0.485, 0.145, 1.620);
}
input.toggle:checked ~ div
{
display: table;
}
To achieve the desired effect, I'm referencing this link: