Correct mis-use of "it's"
This commit is contained in:
parent
ac7daa516f
commit
6af9a2e2a4
14 changed files with 29 additions and 29 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue