This repository contains basic concepts of CSS and some frequently used patterns in my daily work. You can find answers in examples, which includes how to center align a div, how to draw circles, triangles with CSS, how to design a blog page with different techniques, etc.
Hopefully it can help you in your daily work and job interviews.
-
What is box model?
-
Where to define styles?
-
List CSS selectors and their priorities
-
The difference between block element, inline-block element and inline element
-
Talk about position property, and its values
-
How to hide an element?
-
What is float element?
-
What is pseudo element? what is pseudo class?
-
How to calculate the width of an element? (box-sizing: border-box vs. context-box)
-
How to center align a paragraph?
-
How to center align a div inside another div?
-
How to make a two column Web page? a three column Web page?
-
How to draw a triangle? a circle? a colored square?
-
How to make a tab view?