Hi, so I see the structure is there. However, I would change your color scheme. The yellow and blue aren’t very appealing together and they are both really bright.
More importantly though you should try to make the page responsive. So when you make the screen smaller the email boxes don’t push out of its container.
When I narrow my browser the text inputs at the top break out of the green box and the content in the green box gets very narrow. My recommendation would be to start your styling with a narrow browser (don’t use a media breakpoint, make all of the styling default for the narrow browser). Then after it looks good slowly increase the width and find a point where you want to style it differently for wider widths and create a media breakpoint there, adding styles specifically for the wider view.
In other words, start small (narrow) and then use media query breakpoints for the bigger widths.
Here are some changes to your code that I made to help your responsiveness. Hopefully it helps with other items on your page. I left some comments to help.
form{
/*give it some opacity: 0.5 */
background-color: rgba(32, 178, 170, 0.5);
/* keeps 60% of the width of the devices screen */
width: 60vw;
border-radius: 15px;
/* to keep the form in center of screen use margin*/
margin: 0 auto;
padding: 20px 10px;
}
input{
display: block;
padding-top: 7px;
padding-bottom: 7px;
margin-left: 20px;
/* keeps boxes to 50% of container so they shrink as container shrinks */
width: 50%;
}
Your form looks okay @Mohamed5. Some things you need to revisit;
When using codepen it only expects the code you’d put within the <body> </body> tags in HTML. (No need to include the body tags). For anything you want to add to <head> click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.
When you only have the code that’s between the body element and you copy/paste from codepen you can ignore the first warning and first two errors.
There are other errors you need to clean up.
Review the lessons on adding radio buttons and checkboxes.
Users should be able to click a radio button or its associated label and that’s what gets selected. In your code click on the label (word) Maybe and see what gets selected.
There is the same type of error with your checkboxes.
Make your submit button look like a button instead of a bar.
Make the cursor change to a pointer when hovering over the submit button.