Как сделать так, чтобы ссылка внутри div заполняла всё пространство внутри div?
HTML:
<div> <div class="box"> <a class="link" href="">Ссылка помещенная в div</a> </div> </div>
CSS:
.box { width: 250px; height: 70px; border: 1px solid #000; } .link { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
0 Comments
Recommended Comments
There are no comments to display.