Skip to content

Commit 229b4d9

Browse files
authored
Update css.md
Fix: `max-600` => `max-width`
1 parent 83351d5 commit 229b4d9

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

css.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -354,15 +354,14 @@ Here is a demonstration:
354354

355355
```html
356356
<style>
357-
div.norm {
358-
width:600px;
359-
border: 3px solid red;
360-
}
361-
362-
div.max {
363-
max-600px:350px;
364-
border: 3px solid red;
365-
}
357+
div.norm {
358+
width: 600px;
359+
border: 3px solid red;
360+
}
361+
div.max {
362+
max-width: 350px;
363+
border: 3px solid red;
364+
}
366365
</style>
367366
</head>
368367
<body>
@@ -378,14 +377,14 @@ When we have lots of text in a fixed space, we can make the content fit using O
378377
```html
379378
<style>
380379
div.norm {
381-
width:600px;
382-
height:100px;
380+
width: 600px;
381+
height: 100px;
383382
border: 3px solid red;
384383
overflow: scroll; /*or hidden*/
385384
}
386385
387386
div.max {
388-
max-600px:350px;
387+
max-width: 350px;
389388
border: 3px solid red;
390389
}
391390
</style>

0 commit comments

Comments
 (0)