The Z-index is a powerful yet confusing concept of CSS
Let's make it easy in this quick thread๐
๐งต
z-index is a CSS property that controls stacking order of elements along Z axis.
Image a hypothetical line starting from your eye to screen, that is Z-axis
โญ Note that z-index only works on positioned elements.
You need to specify the position (relative, absolute, sticky, fixed) if you want to arrange an element using z-index
๐ z-index of nested elements
Let's say two elements A and B are siblings with element B written after element A in DOM, then the children of element A cannot be higher than element B no matter what z-index is being applied on children
See this in action๐
Play around with code for better understanding. Any doubts? Post below๐
Responsive Web Design is an important thing to learn.
In this I'll try to give you a quick overview and tips to make you web page responsive
So what are you waiting for? This thread is for you๐
๐งตโฌ๏ธ
๐ ABSTRACT
In this thread I have covered some quick tips and overview of RWD
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
Responsive web design is not a kind of program or framework. We can say it's a combination of various concepts using which we try to make our web page look good on all devices
The great thing is that you can achieve RWD using HTML and CSS onlyโก
Lately, I love writing blogs on @hashnode. Initially I wasn't sure how to start but now I get it that process is pretty easy and straight forward๐
Why I prefer Hashnode over other platforms?
1. You can blog at your personal domain (blog.pratham.codes) 2. You can customize your blog design entirely 3. Inbuilt community of thousands of developers 4. Personalized Newsletters
CONT...๐
5. Hashnode has a great UX and UI 6. You can add many pages to your customized blog