Skip to content

Instantly share code, notes, and snippets.

@angelolev
Last active April 20, 2022 04:01
Show Gist options
  • Save angelolev/f5e4329c8fddaf2b2800559ad583cf00 to your computer and use it in GitHub Desktop.
Save angelolev/f5e4329c8fddaf2b2800559ad583cf00 to your computer and use it in GitHub Desktop.
Script to see HTML elements containers and properties
<style>
html * {
background: rgba(255, 0, 0, .1);
box-shadow: 0 0 0 1px red;
}
</style>
@Karmineitor
Copy link

<style> html * { background: rgba(255, 0, 0, .1); box-shadow: 0 0 0 1px red; } </style>

@davidrzuluaga
Copy link

davidrzuluaga commented Apr 19, 2022

Save this as a bookmark
javascript:((()=>{ document.head.insertAdjacentHTML("beforeend", "<style> html * { background: rgba(255, 0, 0, .1); box-shadow: 0 0 0 1px red; } </style>")})())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment