Untitled
unknown
plain_text
a year ago
657 B
5
Indexable
update the below code to keep the width as 60% for larger screens and width as 100% for smaller screens. .white-block { margin: 3rem auto; /* Center the white block */ padding: 20px; border: 2px solid #000000; border-radius: 10px; background-color: white; @media (min-width: 1025px) { width: 60% !important; } @media (max-width: 1025px) { width: 60% !important; } @media (max-width: 426px) { width: 100% !important; } @media (max-width: 350px) { width: 100% !important; } }
Editor is loading...
Leave a Comment