centered the selectors

This commit is contained in:
mcguirepr89
2022-02-18 10:04:28 -05:00
parent c7a0699fc3
commit 7852212a4e
+13 -6
View File
@@ -93,7 +93,7 @@ input[type=number] {
width: calc(50% - 70px); width: calc(50% - 70px);
} }
.second { .second {
width: calc(50% - 30px); width: 50%;
} }
. .
/* Clear floats after the columns */ /* Clear floats after the columns */
@@ -112,6 +112,8 @@ a {
.block { .block {
display: block; display: block;
width:50%; width:50%;
margin-right:auto;
margin-left:auto;
border: none; border: none;
padding: 10px 10px; padding: 10px 10px;
font-size: medium; font-size: medium;
@@ -130,13 +132,18 @@ img {
margin-right: auto; margin-right: auto;
} }
select { select option {
text-align:center;
font-size:large; font-size:large;
width: 60%;
} }
select option { select {
display:block;
width:80%;
margin-right:auto;
margin-left:auto;
font-size:large; font-size:large;
width: 60%;
} }
form { form {
@@ -210,8 +217,8 @@ while($rows=$stats ->fetch_assoc())
?> ?>
</table> </table>
</div> </div>
<div class="column"> <div class="column second">
<form action="stats.php" method="POST"> <form style="margin:0;width:100%;" action="stats.php" method="POST">
<h3>Species Stats</h3> <h3>Species Stats</h3>
<select name="species" > <select name="species" >
<option value="<?php if(isset($_POST['species'])){echo $selection;}?>"><?php if(isset($_POST['species'])){echo $selection;}else{echo "--Choose Species--";}?></option> <option value="<?php if(isset($_POST['species'])){echo $selection;}?>"><?php if(isset($_POST['species'])){echo $selection;}else{echo "--Choose Species--";}?></option>