Is there a way to position my button after the reviews stars?
The browser output screenshot shows the desired layout:
https://i.sstatic.net/nh63E.png
I want my post review button to be displayed after the reviews stars, not in a row.
Here is the code snippet:
<!-- CSS only -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0b7b647b7b6e792561784b3a253a3d253b">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<form action="">
<input type="text" class="form-control" placeholder="Your Name" required>
<textarea placeholder="Enter Your Review Here..." cols="30" rows="5" class="form-control mt-3" required></textarea>
<style>
.rating {
float: left;
}
.rating input {
display: none;
}
.rating label {
color: #ddd;
float: right;
}
.rating label:before {
margin: 5px;
}
.rating>input:checked~label,
.rating:not(:checked)>label:hover,
.rating:not(:checked)>label:hover~label {
color: #FFD700;
}
.rating-st {
font-size: 30px;
padding: 5px;
}
</style>
<div class="rating mt-3">
<input id="star_a-5" name="rating_a" type="radio" value="5" />
<label for="star_a-5" class="full"><i class="fa fa-star rating-st" aria-hidden="true"></i></label>
<input id="star_a-4" name="rating_a" type="radio" value="4" />
<label for="star_a-4" class="full"><i class="fa fa-star rating-st" aria-hidden="true"></i></label>
<input id="star_a-3" name="rating_a" type="radio" value="3" />
<label for="star_a-3" class="full"><i class="fa fa-star rating-st" aria-hidden="true"></i></label>
<input id="star_a-2" name="rating_a" type="radio" value="2" />
<label for="star_a-2" class="full"><i class="fa fa-star rating-st" aria-hidden="true"></i></label>
<input id="star_a-1" name="rating_a" type="radio" value="1" required/>
<label for="star_a-1" class="full"><i class="fa fa-star rating-st" aria-hidden="true"></i></label>
</div>
<input type="submit" class="btn btn-primary" value="Post My Review">
</form>