mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-09 12:57:45 +00:00
docs: add alt text to images
This commit is contained in:
@@ -673,7 +673,7 @@ As a result, `id="modal"`'s `z-index` does not apply outside of the stacking con
|
||||
|
||||
Here's a diagram showing what I mean:
|
||||
|
||||

|
||||

|
||||
|
||||
You'll see that both `<header>` and `<div id="modal">` are both contained within a box that's labeled `z-index: 1`. This is because they're both contained within the `header`'s stacking context.
|
||||
|
||||
@@ -738,11 +738,11 @@ Let's say that we wanted our modal to have its own header that allowed you to sc
|
||||
|
||||
At first, it might look a bit odd since the footer is on top of the modal (for the reasons we outlined before).
|
||||
|
||||

|
||||

|
||||
|
||||
However, if we remove the footer temporarily, we can see a modal rendering on top of the header as expected:
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
You might be wondering:
|
||||
@@ -753,7 +753,7 @@ This is again because of stacking contexts being created. In this case, not only
|
||||
|
||||
We can see what these stacking contexts look like here:
|
||||
|
||||

|
||||

|
||||
|
||||
That's right; You can contain stacking contexts within other stacking contexts. 🤯
|
||||
|
||||
|
||||
Reference in New Issue
Block a user