Start using CSS resets for personal projects. A good one is made by a guy at work called Marx. To use it in a project:
- Copy this and paste it into your project in a
styles
directory - Import the reset into an
index.css
or load in onto every page
@import url('./styles/marx.min.css');
- Customize as you see fit, a good starter is to give the body these rules
body {
max-width: 700px;
margin: 0 auto;
padding: 20px;
}
- You should wrap all form inputs in a
div
with some margin top and bottom
.input-block {
margin: 20px 0px;
}
- Reset variables if you want to mess around with colors
- Reset theme color to white
<meta name="theme-color" content="#fff" />