Skip to content

Commit decc8a1

Browse files
chore: Fix misleading explanation (#39925)
* chore: Fix the Property syntax Property names don't contain whitespace. * Update files/en-us/learn_web_development/core/styling_basics/getting_started/index.md --------- Co-authored-by: Chris Mills <[email protected]>
1 parent 5c688c9 commit decc8a1

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/learn_web_development/core/styling_basics/getting_started

1 file changed

+1
-1
lines changed

files/en-us/learn_web_development/core/styling_basics/getting_started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ margin: 0auto;
624624
padding- left: 10px;
625625
```
626626

627-
Do you see the spacing errors? First, `0auto` is not recognized as a valid value for the `margin` property. The entry `0auto` is meant to be two separate values: `0` and `auto`. Second, the browser does not recognize `padding-` as a valid property. The correct property name (`padding-left`) has a space inserted in it.
627+
Do you see the spacing errors? First, `0auto` is not recognized as a valid value for the `margin` property. The entry `0auto` is meant to be two separate values: `0` and `auto`. Second, the browser does not recognize `padding-` as a valid property. The correct property name (`padding-left`) doesn't have a space in it.
628628

629629
You should always make sure to separate distinct values from one another by at least one space. Keep property names and property values together as single unbroken strings.
630630

0 commit comments

Comments
 (0)