Hi there, Something simple which I’m probably just being stupid with but I’ve only been doing this HTMLCSS for a couple days. I’ve currently got this for
I tried centering the Name form by doing this in styles.css but it hasn’t worked. How would i go about centering the two forms and additionally placing the Name and Email text on the top left of each form like the following image below.
So, I think you have some other stuff to fix before worrying about the styling to be honest
Your label’s have no closing label tag
your labels should really be inside your form not on the outside
your forms have no closing tag
You really should have only one form there shouldnt be a new form for for each input.
your css is using a style for a class of “name” but you dont have a name class in your html, or at least in the code you have shown
Using br is not the best thing to be doing here, but I think you need to clean up and fix your html first. Or, go back through the challenges and refresh yourself.
Does this look better. How would you place them onto different lines instead of using <br /> yourself? Would now being doing display: block; in CSS the best way?
Looks a lot better, and yes using display block is what you want to do. You could do something like this. Gives both of them a class, and then uses the class to have their display be block. This also gives some space between them as well
You sir are a genius. Thank you so much for the help and the criticism. That has worked awesome with a few style tweak which were using label. Thank You haha