Home / CSS Tips Generated By ChatGPT / Responsive Design with em Units for Padding and Margins in CSS Use em units for padding and margins to maintain relative spacing based on font size. Source Code .responsive-spacing { padding: 2em; margin: 1em; }