- Joined
- Aug 16, 2022
- Messages
- 52
- Reaction score
- 2
Hi Everybody,
I'm making myself nuts trying to move the text "Gender" several spaces. I could do it with a series of tags but I would prefer a CSS method if I can.
However, if I add "text-indent: 1.25rem;" statement to the ".input-group-text" class I indent everything, including the font-awesome icon. I don't want to do that, I just want to position the text "gender".
How do I do that in the CSS code?
I'm making myself nuts trying to move the text "Gender" several spaces. I could do it with a series of tags but I would prefer a CSS method if I can.
However, if I add "text-indent: 1.25rem;" statement to the ".input-group-text" class I indent everything, including the font-awesome icon. I don't want to do that, I just want to position the text "gender".
How do I do that in the CSS code?
HTML:
<div class="row">
<div class="col-sm-6 form-group">
<h1><span class="input-group-text"><i class="fa fa-transgender-alt" style="color: #0000FF" arial-hidden="true"></i>Gender</span></h1>
<div class="box1">
<div class="form-check">
<input type="radio" class="form-check-input" id="cGender1" name="cGender" value="No Answer" checked />
<label class "form-check-label" for'cGender1'>Declined</label>
</div>
<div class="form-check">
<input type="radio" class="form-check-input" id="cGender2" name="cGender" value="Male" />
<label class "form-check-label" for'cGender2'>Male</label>
</div>
<div class="form-check">
<input type="radio" class="form-check-input" id="cGender3" name="cGender" value="Female" />
<label class "form-check-label" for'cGender3'>Female</label>
</div>
</div>
</div>
CSS:
.input-group-text {
border-color: #000000 ;
border-width: 0.125rem;
background-color: #00FFCC;
max-width: 3.00rem;
font-family: Cabin SemiBold, sans-serif;
}