I have wasted hours just doing this. Can please someone help me ???
Here is my HTML:
<div class="label-block">Are you married ? </div>
<div>
<input type="radio" name="marriage" value="no" class="greyColor">
<label for="marriage" class="radio_Label">No way</label>
</div>
<div>
<input type="radio" name="marriage" value="maybe" class="greyColor">
<label for="marriage" class="radio_Label">Perhaps. I don't know</label>
</div>
<div>
<input type="radio" name="marriage" value="yes" class="greyColor">
<label for="marriage" class="radio_Label">Yeah! Of course</label>
</div>
My CSS:
html, body {
margin: 0;
height: 0;
background-color: #325B79;
}
#bg {
background-color: orange;
width: 1000px;
margin: 50px auto;
border-radius: 20px;
}
#title, #description {
font-family: 'Jolly Lodger';
font-weight: 800;
text-align: center;
letter-spacing: 2px;
}
#title {
font-size: 100px;
padding-top: 90px;
}
#description {
font-size: 30px;
margin-bottom: 0px;
}
hr {
border: 2px solid black;
border-radius: 5px;
width: 400px;
margin-bottom: 50px;
}
.label-block {
font-family: 'Jolly Lodger';
font-size: 40px;
text-align: center;
margin: 10px;
color: blue;
}
#bg > form {
color: white;
padding: 40px;
font-family: 'Jolly Lodger';
font-size: 22px;
letter-spacing: 1px;
}
#bg > form > input, select, textarea {
font-family: 'Jolly Lodger';
font-size: 22px;
letter-spacing: 1px;
padding: 0px 6px;
background-color: #2C2F33;
border: 1px solid white;
color: #fff;
display: block;
margin: auto;
margin-bottom: 50px;
}
#bg > form > input {
width: 200px;
}
#bg > form > textarea {
width: 500px;
}
.greyColor {
color: #325B79;
}
The result is:
HOW CAN I ADJUST THEM TO CENTER LIKE MY OHTER THINNGS ?
WHY CAN’T I DO IT ?