Key CSS Tips & Tricks Flashcards
1
Q
Create sections of 700px width without wrapper divs (such that background can extend 100% and text only 700px)
A
padding: 1rem calc(50% - 350px);
2
Q
What’s the clean, modern way to make a clearfix?
A
.group instead of .cf
content: “”;
display: table;
clear: both;