+ 1

how to increase height upword?

when I increase div's height it's height increase downword and upper part remain fixed. But I want lower part remain fixed and the height will increase upword. https://code.sololearn.com/W5j0zqzbSfMB/?ref=app

26th Oct 2019, 4:48 PM
ND MORSALIN
ND MORSALIN - avatar
4 Antworten
+ 2
Use flexbox .middel-div-wrapper { display: flex; align-items: flex-end; }
27th Oct 2019, 1:28 AM
Calviղ
Calviղ - avatar
+ 2
You can also use vertical-align: bottom, replace float with display:inline-block. https://code.sololearn.com/Ws5r7xIMAk12/?ref=app
27th Oct 2019, 3:10 AM
Calviղ
Calviղ - avatar
+ 1
Exactly calvin
27th Oct 2019, 1:52 AM
Mahesh Muttinti
+ 1
You can use the "margin-top" property with a negative value. Here's a code example: https://code.sololearn.com/W46c83i4bMMD/?ref=app In the CSS tab please check the styles in the "div2" class.
27th Oct 2019, 2:02 AM
Ryan
Ryan - avatar