Account
Login
Categories
HTML
CSS
Python
PHP
MySQL
Linux
Javascript
HTML
CSS
Python
PHP
MySQL
Linux
Javascript
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 float property affect layout in CSS?
What is the writing-mode property?
How does float work in CSS?
What are the possible values of the contain property, and how are they used?
How do you style the placeholder text in a form field?
What is the difference between max-width and min-width in CSS?
How do you create a loading spinner with CSS?
How do you avoid layout shifts when implementing dynamic CSS changes in a page?
How do you handle text wrapping in CSS?
How do you create a complex layout with both Flexbox and Grid in the same container?
How does text-decoration-thickness work?
What are the limitations of CSS variables in browsers that don’t support them fully?
How can you add a custom font using CSS?
What is text-overflow: ellipsis, and how does it work?
What is the difference between initial, inherit, and unset values in CSS?
X