У меня есть 3 div с вложенными тегами привязки. Я пытаюсь расположить их так, чтобы они находились рядом друг с другом на равных расстояниях. Что бы я ни старался, они просто накладывались друг на друга.
Вот мой CSS код
.links {
width: 35%;
text-align: center;
border: solid 1px;
background-color: #02b316;
margin: 5px;
position: absolute;
}
.absolute {
text-decoration: none;
color: white;
font-size: 11px;
}
.link-container {
padding-left: 5px;
padding-right: 5px;
}
h4 {
font-size: 18px;
margin: 10px;
}
p {
font-size: 14px;
}
Вот мой HTML
<div class="links">
<div class="link-container">
<a class="absolute" href="#">
<h4>Lorem Ipsum</h4>
<hr>
<p>
is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
</p>
</a>
</div>
</div>
<div class="links">
<div class="link-container">
<a class="absolute" href="#">
<h4>Lorem Ipsum</h4>
<hr>
<p>
is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
</p>
</a>
</div>
</div>
<div class="links">
<div class="link-container">
<a class="absolute" href="#">
<h4>Lorem Ipsum</h4>
<hr>
<p>
is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen.
</p>
</a>
</div>
</div>