CSS is an amazing and unique language that servers a great purpose. We can make our website visually good using CSS. It describes the presentation of web pages, including typography, layouts, color, etc
Let's break it down π§΅ππ»
CSS is a stylesheet language that serves one great purpose. It makes your website visually good
Consider this amazon website with and without CSS ππ»
I hope you got it why CSS is important for web development. Alright let's move onto actually discussion that how you start learning it
First and foremost
The characteristic of a great website is its color scheme. Forget about everything and learn about background and color properties initially.
The colors are something from which users interact first whenever they visit your webpage
There are a lot of great color palette out there using which you can generate pleasant color schemes
Check this great tool for generating accessible colors
Don't think that background property is just for setting the solid color. Background is a shorthand property for background-image, background-position etc..
The box model is one of the most important concepts of CSS. It's not so tough to learn. The box-model covers
- Height
- Width
- Padding
- Border
- Margin
Height and width properties are pretty intuitive. These are used to set fixed height and width to the element
I suggest giving a look at max, min-width, and max, min-height properties as well.
Proper and uniform separation of elements is something that can give your webpage an appealing look. Margin and padding can do this for you.
Border are used to set the color, width and style to elements. You can learn it in 5 min
Some good border selection can give your element a good pleasant look
Moving forward, typography is an essential thing of web page. A good font can make your webpage and establish a strong visual hierarchy, provide a graphic balance to the website, and set the product's overall tone.
You can add free fonts from Google's official site
You just need to look at few font properties. For ex,
πΉ font-family
πΉ font-weight
πΉ font-size
Alright moving further, We have CSS positioning.
From here, a bit tricky CSS starts. Using CSS positioning you can change the position of your element. This might seems a bit tough but you can learn it in 2-3 days
I have already written a detailed thread on CSS positioning, If you're interested check it out.
Hmm, awesome!! I think you're all set to learn about responsiveness here.
Don't skip it. There are millions of devices on which your website is viewed.
Responsive web design is little tricky but not so tough to master. There are few quick points you need to remember while writing CSS code
I would suggest you to take care of responsiveness while writing CSS rather than handling responsiveness in the end.
1. Use meta viewport element 2. Don't use a large fixed width 3. Try to use Layouts 4. Use box-sizing: border-box 5. Media Queries are saviour 6. Use "auto" in media 7. Use frameworks if possible
In this thread, I have compiled some general tips to make your website responsive
Great!! I think that's pretty much it in order to give you a quick overview. If you have any doubts, feel free to drop a comment below
If you like this thread, a retweet means a lot π
Addendum
HTML and CSS are sometimes enough to start your journey as a developer and make some money. I did my first freelancing projects using HTML and CSS only
If you also want to start your career as a freelancer, check this bundle by @study_web_dev