I'm trying to get my buttons aligned in my display. If I try to use float: right; nothing happends. Below you can find a screenshot:
So I'm trying to get these buttons all in a row below each other. I also tried using a table, but that one screws up my design of my hrefs Here you can find my html:
<div class="LineField">
<p>Axo 800</p>
<a href="Planning.php?id=1" class="LineButton">Planning</a>
<a href="DataAnalyse.php?id=1" class="LineButton">Data analyse</a>
</div>
<div class="LineField">
<p>JC-FSX</p>
<a href="Planning.php?id=2" class="LineButton">Planning</a>
<a href="DataAnalyse.php?id=2" class="LineButton">Data analyse</a>
</div>
etc. etc.
css:
.LineField
{
width: 50%;
height: 8%;
margin-bottom: 15px;
padding-top: 5px;
margin-left: auto;
margin-right: auto;
background: #191748;
border: 0.1em #191748;
border-radius: 1em;
color: white;
/* vertical alignment */
display: flex;
align-items:center;
}
.LineField p
{
margin-left: 25px;
margin-right: 25px;
Font-size: 200%;
}
.LineButton
{
border-radius: 0.5em;
width: 30%;
height: 50%;
background: linear-gradient(#ffffff, #c4c4ff);
margin-left: 3%;
margin-right: 3%;
padding-top: 5px;
color: #191748;
font-size: 150%;
font-weight: 500;
text-decoration: none;
}
