CSS is an amazing and unique language that servers a great purpose. We can make our website visually good using CSS. It describe the presentation of web pages, including typography,. layouts, color etc...
{ 2 / 23 }
We can't imagine web development without CSS. See two attached images
1. With CSS 2. Without CSS
Now imagine all websites without styling....
{ 3 / 23 }
I hope you got it why CSS is important for web development. Alright let's move onto asctually discussion that how you start learning it
{ 4 / 23 }
First and foremost
The characterstic of a great website is it's 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
{ 5 / 23 }
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..
{ 7 / 23 }
Box model is one of the most important concept of CSS. It's not so tough to learn. The box-model covers
- Height
- Width
- Padding
- Border
- Margin
{ 8 / 23 }
Height and width property are pretty intuitive. These are used to set fixed height and width to the element
I suggest to give a look at max, min-width and max, min-height properties as well.
{ 9 / 23 }
Proper and uniform separation of elements is something that can give your webpage a 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
{ 11 / 23 }
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 fonts properties. For ex,
🔹 font-family
🔹 font-weight
🔹 font-size
{ 14 / 23 }
Alright moving further, We have CSS positioning.
From here, a bit tricky CSS starts. Using CSS positioning you can change the position of you element. This might seems bit tough but you can learn it in 2-3 days
{ 15 / 23 }
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.
{ 19 / 23 }
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.
{ 20 / 23 }
1️⃣ Use meta viewport element
2️⃣ Don't use 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
{ 21 / 23 }
In this thread I have compiled some general tips to make your website responsive
In the next 3 minutes, you will be able to tackle CORS errors much more effectively.
CORS is not rocket science.
It's the biggest pain for developers because the majority of us don't know its core concept.
Let's try to build a solid fundamental.
Stands for Cross-Origin Resource Sharing.
It is a security feature implemented by web browsers (almost all) that controls how web pages from one domain can request resources hosted on another domain.