Rahmad
August 21, 2022, 1:44pm
1
Step 56
Lastly, for the submit button, you want to separate it from the fieldset
above, and adjust its width to never be below 300px
.
Change the margin
property to include 1em
on the top and bottom, while leaving the right and left margins set to auto
. Then set the width as described above.
input[type="submit"] {
display: block;
width: 60%;
margin: 1em auto;
height: 2em;
font-size: 1.1rem;
background-color: #3b3b4f;
border-color: white;
}
AKG
August 21, 2022, 1:51pm
2
Hi and welcome to FCC
You must use margin-top and margin-bottom to do it , please try now
Rahmad
August 21, 2022, 1:59pm
3
input[type="submit"] {
display: block;
width: 60%;
margin: 0em auto;
margin-top: 1em;
margin-bottom: 1em;
height: 2em;
font-size: 1.1rem;
background-color: #3b3b4f;
border-color: white;
}
still error man
AKG
August 21, 2022, 2:02pm
4
Did you leave the right and left margin to auto as well ? I don’t see them in your code buddy
5 Likes
Rahmad
August 21, 2022, 2:09pm
5
i done it already !
thank’s for your respon
how did u get it done bro?
I am currently hanged here
input[type=“submit”] {
display: block;
width: 60%;
min-width:300px;
margin: auto;
margin-top:1em;
margin-bottom:1em;
margin-left: auto;
margin-right: auto;
height: 2em;
font-size: 1.1rem;
background-color: #3b3b4f ;
border-color: white;
}
This worked more perfectly
input[type=“submit”] {
display: block;
width: 60%;
min-width:300px;
margin-top: 1em;
margin-bottom:1em;
margin-right:auto;
margin-left:auto;
height: 2em;
font-size: 1.1rem;
background-color: #3b3b4f ;
border-color: white;
}
system
Closed
September 25, 2023, 8:40am
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.