I have some problems in the div tag

I use the div tag in my code. I set a class for this when I used height for this work, but I want it to expand without using height

<div id="list-div-bg"> <div class="list-view-photo"> <img src="images/list-img.png" alt="" width="77" height="63"> </div> <div id="list-view-text"> Nissan Pulsar LS Euro Series<br> <span class="Stock-title">Stock Number: 7407<br> Transmission: Automatic<br></span> <a href="#" class="link-text">More Details</a></div> <div class="price-div"> $9,499 <br> Available<br> <a href="#" class="save-button"> SAVE</a> </div> </div> 
+4
source share
1 answer

What do you mean by "extension without using height?"

Set height for auto (default). OR use "%" to determine the height in percent of the containing block.

+1
source

Source: https://habr.com/ru/post/1433521/


All Articles