Correct mis-use of "it's"

This commit is contained in:
Dan Wallis 2022-04-13 11:43:59 +01:00
parent ac7daa516f
commit 6af9a2e2a4
No known key found for this signature in database
GPG key ID: 1CB3140D2C4E59EE
14 changed files with 29 additions and 29 deletions

View file

@ -17,8 +17,8 @@ As a sample element to demonstrate properties we'll use the one given below:
width: 300px;
height: 200px;
border: 25px solid #E8C48F;
padding: 20px;
overflow: auto;
padding: 20px;
overflow: auto;
}
</style>
```
@ -106,7 +106,7 @@ Geometry properties are calculated only for displayed elements.
If an element (or any of its ancestors) has `display:none` or is not in the document, then all geometry properties are zero (or `null` for `offsetParent`).
For example, `offsetParent` is `null`, and `offsetWidth`, `offsetHeight` are `0` when we created an element, but haven't inserted it into the document yet, or it (or it's ancestor) has `display:none`.
For example, `offsetParent` is `null`, and `offsetWidth`, `offsetHeight` are `0` when we created an element, but haven't inserted it into the document yet, or it (or its ancestor) has `display:none`.
We can use this to check if an element is hidden, like this: