You have to play with width property. Aplly it to your label and input if you won’t use flexbox or grid or floats.
Don’t forget about the box model. label is inline elements until you set it another display property.
Read this W3C CSS display property.
There is two property you have to use to make what you want to make: display and text-align.
If I understand correctly you want to do this:
Work with the properties I’ve wrote above and apply it to your labels and inputs. If you get stuck learn more about both of this properties.
Another things. Label element in HTML can take an attribut for with id of input element to which he belongs.
<input id=“myNameIsGreat” type=“text” name=“name”>
Check yours labels and inputs and fix this.
Notice input elements are self closing elements. This means they shouldn’t have closing tag like p,h2,label etc.
Slow down for a while and take a moment to take a peek on your HTML and dive deeper into it. When your HTML will be more clear and you’ll understand it better then CSS will be more understandable for you.
It is not hard to learn HTML (use W3C HTML course). But if you willn’t learn it then you’ll stuck at very simple problems.
PS> When somebody says “it’s simple” it means it is now simple for him. But when you learn something new it is may be hard sometimes and can take extra time to understand basics for everyone. If you get stuck just take a break and relax.
Sorry for long post but I think it’ll help you. I hope so.
I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.
The font of your menu is small and hard to read. And items of the menu is too close to the left side of the window. Use relative units to make your text awesome at any viewport and any device. You can start to learn about responsive CSS units at FCC Guid: CSS-fonts.
Your HTML looks a little mess. Does it a header or a plain text? Why didn’t you close the p tag? You do not have to close p tags and each browser will build your HTML document but it is recommended to close all tags because at least your code will be read by other programmers.