From 2ede57d571e382f5aae167bd2a059a12fa1108ea Mon Sep 17 00:00:00 2001
From: Navan Chauhan
Date: Mon, 26 Feb 2024 12:09:08 -0700
Subject: add new post
---
...ntrol-element-under-another-element-html-css.md | 35 ++++++++
.../assets/underlying/video-under-element.jpg | Bin 0 -> 155017 bytes
...trol-element-under-another-element-html-css.png | Bin 0 -> 22985 bytes
docs/assets/underlying/video-under-element.jpg | Bin 0 -> 155017 bytes
docs/feed.rss | 48 ++++++++++-
...trol-element-under-another-element-html-css.png | Bin 0 -> 22985 bytes
docs/index.html | 32 +++-----
...rol-element-under-another-element-html-css.html | 88 +++++++++++++++++++++
docs/posts/index.html | 13 +++
docs/tags/CSS.html | 71 +++++++++++++++++
docs/tags/HTML.html | 13 +++
11 files changed, 279 insertions(+), 21 deletions(-)
create mode 100644 Content/posts/2024-02-26-control-element-under-another-element-html-css.md
create mode 100644 Resources/assets/underlying/video-under-element.jpg
create mode 100644 Resources/images/opengraph/posts/2024-02-26-control-element-under-another-element-html-css.png
create mode 100644 docs/assets/underlying/video-under-element.jpg
create mode 100644 docs/images/opengraph/posts/2024-02-26-control-element-under-another-element-html-css.png
create mode 100644 docs/posts/2024-02-26-control-element-under-another-element-html-css.html
create mode 100644 docs/tags/CSS.html
diff --git a/Content/posts/2024-02-26-control-element-under-another-element-html-css.md b/Content/posts/2024-02-26-control-element-under-another-element-html-css.md
new file mode 100644
index 0000000..1c253fe
--- /dev/null
+++ b/Content/posts/2024-02-26-control-element-under-another-element-html-css.md
@@ -0,0 +1,35 @@
+---
+date: 2024-02-26 11:57
+description: With CSS you can disable any interactions with an element and directly control the underlying element
+tags: HTML, CSS
+draft: false
+---
+
+# Interacting with underlying element in HTML
+
+I know that the title is a bit weird. I was trying to interact with a video under an iPhone Bezel Screen frame.
+
+```html
+
+
+
+
+
+
+
+```
+
+![Video Under a Transparent Image](/assets/underlying/video-under-element.jpg)
+
+Turns out, you can disable pointer events!
+
+In Tailwind, it is as simple as adding `pointer-events-none` to the bezel screen.
+
+In CSS, this can be done by:
+
+```css
+.className {
+ pointer-events: none
+}
+```
+
diff --git a/Resources/assets/underlying/video-under-element.jpg b/Resources/assets/underlying/video-under-element.jpg
new file mode 100644
index 0000000..96afed2
Binary files /dev/null and b/Resources/assets/underlying/video-under-element.jpg differ
diff --git a/Resources/images/opengraph/posts/2024-02-26-control-element-under-another-element-html-css.png b/Resources/images/opengraph/posts/2024-02-26-control-element-under-another-element-html-css.png
new file mode 100644
index 0000000..2817224
Binary files /dev/null and b/Resources/images/opengraph/posts/2024-02-26-control-element-under-another-element-html-css.png differ
diff --git a/docs/assets/underlying/video-under-element.jpg b/docs/assets/underlying/video-under-element.jpg
new file mode 100644
index 0000000..96afed2
Binary files /dev/null and b/docs/assets/underlying/video-under-element.jpg differ
diff --git a/docs/feed.rss b/docs/feed.rss
index 5cafe59..244ab87 100644
--- a/docs/feed.rss
+++ b/docs/feed.rss
@@ -4,8 +4,8 @@
Navan's ArchiveRare Tips, Tricks and Posts
https://web.navan.dev/en
- Sat, 17 Feb 2024 19:51:03 -0000
- Sat, 17 Feb 2024 19:51:03 -0000
+ Mon, 26 Feb 2024 12:07:42 -0000
+ Mon, 26 Feb 2024 12:07:42 -0000250
@@ -3547,6 +3547,50 @@ Otherwise, it calls the custom action.
]]>
+
+
+ https://web.navan.dev/posts/2024-02-26-control-element-under-another-element-html-css.html
+
+
+ Interacting with underlying element in HTML
+
+
+ With CSS you can disable any interactions with an element and directly control the underlying element
+
+ https://web.navan.dev/posts/2024-02-26-control-element-under-another-element-html-css.html
+ Mon, 26 Feb 2024 11:57:00 -0000
+ Interacting with underlying element in HTML
+
+
I know that the title is a bit weird. I was trying to interact with a video under an iPhone Bezel Screen frame.
In Tailwind, it is as simple as adding pointer-events-none to the bezel screen.
+
+
In CSS, this can be done by:
+
+
+
.className{
+pointer-events:none
+}
+
+
+
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/posts/index.html b/docs/posts/index.html
index 566d3de..4194100 100644
--- a/docs/posts/index.html
+++ b/docs/posts/index.html
@@ -52,6 +52,19 @@