Skip to content

Commit 0a1de1d

Browse files
committed
Add Responsive design
1 parent e7e4d31 commit 0a1de1d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,29 @@ Define a custom font. All modern browsers support WOFF2.
102102
}
103103
```
104104

105+
## Responsive design
106+
107+
Every webpage should look good on desktop, tablet and mobile.
108+
109+
```css
110+
/* Mobile */
111+
.box {
112+
padding: 10px;
113+
}
114+
/* Tablet */
115+
@media screen and (min-width: 768px) {
116+
.box {
117+
padding: 40px;
118+
}
119+
}
120+
/* Desktop */
121+
@media screen and (min-width: 1024px) {
122+
.box {
123+
padding: 80px;
124+
}
125+
}
126+
```
127+
105128
## Line clamp
106129

107130
Like `text-overflow: ellipsis`, but for multiple lines.

0 commit comments

Comments
 (0)