I’d like to now how to fix the margin of the inputs, it’s being 100% of the div and not taking the padding, and other critics are welcome as well
Here’s the code: https://codepen.io/Jorge79/pen/LYEKvbe
I’d like to now how to fix the margin of the inputs, it’s being 100% of the div and not taking the padding, and other critics are welcome as well
Here’s the code: https://codepen.io/Jorge79/pen/LYEKvbe
The inputs are taking up 100% of your green box because you have them set that way:
#text > input {
width: 100%;
margin-top: 2px;
margin-bottom: 15px;
}
You’re missing the ‘for’ attribute on a lot of your <label>s so they aren’t working correctly.
Personally, I think the black text on green opaque background is too hard to read, especially with the busyness of the background image. I know you have the opacity set at 0.8 and that seems like a lot but I would make it even closer to 1.
Yes, i understood the problem, i was looking for the solution, i searched and the didn’t find a good solution.
Thanks for the advice about the labels and the color, i’m going to fix right now. And if you could help me with the width input i apreciatte much more
I’m assuming you want to center your inputs with some padding on the sides. I googled “css centering elements” and found several links. This one seems pretty good:
There are so many options out there for centering that you should be able to find one that works for you. Also, it might make things a little easier if you wrapped all of your elelments inside of your form in a <div>.
No man. The inputs are being centered but the witdth still stretching, thanks for the help.
I did putting the box-sizing: boder-box, don’t remember if it has a task of this in the curriculum, but worked perfectly
Hi @JorgeSantos, some things to revisit on your form;
<br>
tag to force spacing. Use margin and/or padding in CSS.for
attribute of the label
element must be the id
of a non-hidden form control.Hello Roma, i was expecting your review.
How do i break line without <br>
tag?
@JorgeSantos, there are a few things you can do. First off, please read this, paying attention to the section on Accessibility Concerns.
You can group like parts in <div>
's. Another thing to investigate is possibly wrapping checkboxes and radio buttons in <fieldset>
although you can stick with a <div>