Skip to content

Commit

Permalink
Improve clarity and grammar in fixed width explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddily authored Nov 18, 2024
1 parent cffed14 commit 24a72ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ In *most* cases, you should avoid setting a height altogether. There are some ex

#### When fixed widths are appropriate

Obviously there are cases when a fixed width is appropriate. It's hard to make a universal rule, but in general the smaller your widths the more likely it's fine to make them fixed. For example, a `32px` icon on your page isn't going to benefit from using `max-width` because you probably *don't* want it to shrink. Likewise a `250px` sidebar probably needs to *always* be `250px`. As with anything you just need to consider your options and pick what seems to be the most appropriate.
There are cases when a fixed width is appropriate. It's hard to make a universal rule, but, in general, the smaller your widths, the more acceptable it is to make them fixed. For example, a `32px` icon on your page isn't going to benefit from using `max-width` because you probably *don't* want it to shrink. Likewise, a `250px` sidebar probably needs to *always* be `250px`. As with anything, you need to consider your options and pick what seems to be the most appropriate.

### Use flex and grid

Expand Down

0 comments on commit 24a72ba

Please sign in to comment.