css - how do to height set with pixel then auto after -


i have box set width: 153px; , height: auto; when page loads because there nothing within box has no body.

how make load height: 51px , change auto once images added?

what have tried?

i tried using height: 53px auto;
setting height on div in html.

i'm sure simple can't seem work out. given appreciated , thank time.

this invalid!

height: 53px auto; 

use way:

height: 53px; height: auto; 

instead can have min-height , set 53px.

min-height: 53px; height: auto; 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -