Let's add some colors to our Login/Register page
Basic form styling
Forms are notoriously tricky to style nicely. After writing your code in the HTML task, you'll see that it looks rather ugly. So for the moment we will just get you to add some CSS to make it look OK.
Now create a CSS file, and reference it in your html file using the code:
Updating our html code
Before we start writing our styles, we need to select some of our tags using class in our html code.
Update your form code to look like the above.
Writing your Styles
After updating your form, go back to your CSS file and add the following Styles:
Adding Media Queries
We Use Media queries for Change styles on extra small screens or larger screen size. It can also be use to do so many things like:
Width and height of the viewport
Width and height of the device
Orientation (is the tablet/phone in landscape or portrait mode?)
resolution
Manily, using media queries is a popular technique for delivering a tailored style sheet to desktops, laptops, tablets, and mobile phones (such as iPhone and Android phones).
So We will use Media Queries to change styles for span and cancel button on extra small screens.
Save and reload, you'll see that your form should look much less ugly.