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);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s the clean, modern way to make a clearfix?

A

.group instead of .cf

content: “”;
display: table;
clear: both;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly