hi I have this codes in HTML
<div class="box"><!-- a long text --></div>
.box have 10 line inner text
the CSS of .box is
.box{
width:200px;
height: initial;
overflow: auto;
min-height: 20px;
}
I want to get height of .box , I use this
$('.box').css('height');
but giv me 0px
the up codes are the sample for you better understand
the real codes of my element
<li> <p class="proSliderText">this is a p tag</p>
</li>
css
.proSliderText{
position: absolute;
top:50%;
left:50%;
margin-left:-15%;
min-height: 40px;
margin-top: -40px;
width:20%;
font-size: 4vw;
height: initial;
}
parent tag CSS
.proSlider li{
list-style-type: none;
position: absolute;
top:0;
left:0;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}