K
K
Kirill Kudryavtsev2018-08-24 21:31:02
css
Kirill Kudryavtsev, 2018-08-24 21:31:02

How to make the card width auto-width?

5b804db7f3684371043929.png5b804dc4287bf161488242.png

<div class="red lighten-5 column">
      <!-- task -->
      <div class="card">
        <div class="card-content">
          <span class="card-title activator grey-text text-darken-4">Card Title<i class="material-icons right">more_vert</i></span>
        </div>
        <div class="card-reveal">
          <span class="card-title grey-text text-darken-4">Card Title<i class="material-icons right">close</i></span>
          <p>Here is some more information about this product that is only revealed once clicked on.</p>
        </div>
      </div>
      <!-- task end -->
    </div>

There is a card, when you click on it, it unfolds. How can I make them expand to their full height?
Used by materializecss.com framework.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dymok, 2018-08-24
@UnluckySerivelha

put herheight: auto;

A
Arthur Mustafin, 2018-08-25
@virtual_hack2root

This is how it unfolds for me (click on Solved by Flexbox)
https://jsfiddle.net/hack2root/t15sguvm/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question