[SOLVED] Adjust div according to content height? (Random Quote Machine)

Specifically adjust a div height to its children’s contents.

Sometimes a quote is so long that some of the contents (i.e. the buttons and parts of the quote) get pushed past the card part, especially when I minimize the browser. Anyone know a solution?

You can try changing #cardSpace { margin: 35px 25px; height: 265px; }


#cardSpace {
margin: 35px 25px;
min-height: 265px;

Nice job by the way.

@dlaub3 That worked! Thanks!