jeudi 30 juin 2016

How to align 2 submit in half panel?

This is in php

<div class='pnl-aln' style='float:right'>
  <div style:'float: left; width: 50%'>
    <form action = 'Page1.php'>
        <input type='submit' class='btn-scelta' value='ACA'>
    </form>
  </div>
  <div style:'float: right; width: 50%'>
    <form action = 'Page2.php'>
        <input type='submit' class='btn-scelta' value='RUTA'>
    </form>
  </div>
</div>

While this is css

.pnl-aln{
  display: inline-block;
  width: 50%;
}

.btn-scelta{
  margin-left: 2%;
  font-family: url("https://fonts.googleapis.com/css?family=Roboto:700");
  font-size: 2vw;
  border: solid 3px #000;
  background: transparent;
  color: #000;
  transition: .5s;
}

Those two submit are placed in half panel, I've tried many types of code but nothing has worked. Please help me because I'm getting mad at this and it's at the end of my project :(

Aucun commentaire:

Enregistrer un commentaire