- Joined
- Aug 16, 2022
- Messages
- 66
- Reaction score
- 2
Hi Everybody,
I have the following HTML form-component. The last input-control is a button type, class id = "submitBtn1".
The issue I have is with the display of the submitBtn1. The CSS contains a border-radius=5px; so there should be a curve on all four corners.
However, you can see both the left-top and left-bottom has no curvature.
There are two things I want to fix:
I have the following HTML form-component. The last input-control is a button type, class id = "submitBtn1".
The issue I have is with the display of the submitBtn1. The CSS contains a border-radius=5px; so there should be a curve on all four corners.
However, you can see both the left-top and left-bottom has no curvature.
HTML:
<form id="regForm" method="POST" action="php/register.php">
<div class = "input-group">
<input type="email" class="inputBox" id="EM1" name="email" tabindex="1" autocomplete="off" spellcheck="false" placeholder="Enter your eMail Address">
<input type="password" class="inputBox" id="PW1" name="password" tabindex="2" autocomplete="off" spellcheck="false" placeholder="Enter your Password">
<input type="password" class="inputBox" id="PW2" tabindex="3" autocomplete="off" spellcheck="false" placeholder="Confirm your Password">
<input type="submit" class="submitBtn1" id="Register" value="Register" tabindex="4" >
</div>
</form>
CSS:
.submitBtn1 {
height: 27px;
width: 90px;
display: block; /* Turns it into a block element */
margin: 0 auto; /* Forces equal left and right margins */
background-color: #1D8750;
border-style: solid;
border-width: 2px;
border-color: #000000;
border-radius: 5px;
color: #FFFFFF;
cursor: pointer;
font-family: "Cabin SemiBold", serif;
font-size: 19px;
font-weight: 600;
text-align: center;
}
There are two things I want to fix:
- I want all four corners of submitBtn1 to be curved.
- I would like to center, horizontally and Vertically , in the middle of the button.