Hello!
Tell me how to realize that when one of the columns is deleted, the remaining column takes up 100% of the content block.
Thank you in advance.
Hello!
Tell me how to realize that when one of the columns is deleted, the remaining column takes up 100% of the content block.
Thank you in advance.
In your case, perfect tabular layout.
<div class="content"> <article>left</article> <aside>right</aside> </div> .content{ width: 500px; margin: 0 auto; display: table; height: 200px; /* Такой же эффект как и у min-height */ margin-top: 20px; /* Demo */ } aside{ display: table-cell; width: 150px; /* У второго столбца ширина рассчитается автоматически */ background: #B2033B; } article{ display: table-cell; background: #ccc; } Source: https://ru.stackoverflow.com/questions/357018/
All Articles