21. Use position: sticky to make a sidebar that sticks while scrolling.
Expected Output:
The sidebar stays visible when scrolling through the main content.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
22. Create an accordion menu that expands and collapses sections.
Expected Output:
Clicking an accordion item expands it to show hidden content.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
23. Style a table to highlight the row on hover.
Expected Output:
Hovering over a row changes its background color.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
24. Create a hover effect to flip a card and show details on the back.
Expected Output:
Hovering over the card flips it to reveal the back.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
25. Design a responsive image gallery using CSS Grid.
Expected Output:
The images are displayed in a grid layout that adjusts on smaller screens.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
26. Create a button with a ripple effect when clicked.
Expected Output:
A ripple effect appears when the button is clicked.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
27. Design a badge counter on a notification icon using ::after pseudo-element.
Expected Output:
A small badge showing the count appears on the icon.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
28. Create a menu that slides in from the left side when a button is clicked.
Expected Output:
Clicking the button shows the sliding menu.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
29. Style an input range slider with a custom track and thumb.
Expected Output:
The slider track and thumb are customized.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.
30. Create a parallax scrolling effect for a background image.
Expected Output:
The background image scrolls slower than the content.
Code In Css
Document
To view the HTML changes, please type the code within the editor
Need help ?
Click on Hint to solve the question.