Skip to content

Commit 062a0f2

Browse files
Change vh to vw in min/max-width styles reference docs (#2943)
1 parent 7cd07bc commit 062a0f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/styles/max_width.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Then, we set `max-width` individually on each placeholder.
4242
max-width: 10;
4343
4444
/* Set the maximum width to 25% of the viewport width */
45-
max-width: 25vh;
45+
max-width: 25vw;
4646
```
4747

4848
## Python
@@ -52,7 +52,7 @@ max-width: 25vh;
5252
widget.styles.max_width = 10
5353

5454
# Set the maximum width to 25% of the viewport width
55-
widget.styles.max_width = "25vh"
55+
widget.styles.max_width = "25vw"
5656
```
5757

5858
## See also

docs/styles/min_width.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Then, we set `min-width` individually on each placeholder.
4242
min-width: 10;
4343
4444
/* Set the minimum width to 25% of the viewport width */
45-
min-width: 25vh;
45+
min-width: 25vw;
4646
```
4747

4848
## Python
@@ -52,7 +52,7 @@ min-width: 25vh;
5252
widget.styles.min_width = 10
5353

5454
# Set the minimum width to 25% of the viewport width
55-
widget.styles.min_width = "25vh"
55+
widget.styles.min_width = "25vw"
5656
```
5757

5858
## See also

0 commit comments

Comments
 (0)