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

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

#1

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?


#2

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

to

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


#3

Nice job by the way.


#4

@dlaub3 That worked! Thanks!