Account
Login
Categories
HTML
CSS
Python
PHP
MySQL
Linux
HTML
CSS
Python
PHP
MySQL
Linux
Shobha
The best way to predict the future is to invent it
Explain the difference between padding and margin and when each should be used.
RELATED INTERVIEW QUESTIONS
How does the perspective property work in CSS?
What does the align-self property do in Flexbox, and how is it different from align-items?
How do you create a scalable and modular CSS architecture for a large-scale project?
How do you apply multiple background images using CSS?
What is the purpose of the var() function in CSS?
How do you create an animated gradient background?
How do you make a sticky element that stays fixed after scrolling past a certain point?
How do you implement a sticky header that scrolls with the page, but becomes fixed when the user scrolls past a certain point?
What is the CSS box model?
How do you implement parallax scrolling using CSS?
How do logical properties (e.g., margin-inline) work?
What is the scope of a CSS custom property, and how does it behave within nested elements?
What is the difference between padding-inline and margin-inline?
What is the perspective property, and how does it affect 3D transforms?
How do you create a blurred background effect?
X