File tree 1 file changed +11
-12
lines changed 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -354,15 +354,14 @@ Here is a demonstration:
354
354
355
355
``` html
356
356
<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
+ }
366
365
</style >
367
366
</head >
368
367
<body >
@@ -378,14 +377,14 @@ When we have lots of text in a fixed space, we can make the content fit using O
378
377
``` html
379
378
<style >
380
379
div .norm {
381
- width :600px ;
382
- height :100px ;
380
+ width : 600px ;
381
+ height : 100px ;
383
382
border : 3px solid red ;
384
383
overflow : scroll ; /* or hidden*/
385
384
}
386
385
387
386
div .max {
388
- max- 600 px : 350px ;
387
+ max-width : 350px ;
389
388
border : 3px solid red ;
390
389
}
391
390
</style >
You can’t perform that action at this time.
0 commit comments