Skip to content

Instantly share code, notes, and snippets.

@LeoDT
Created October 14, 2011 07:29
Show Gist options
  • Save LeoDT/1286471 to your computer and use it in GitHub Desktop.
Save LeoDT/1286471 to your computer and use it in GitHub Desktop.
hide div without id or class
div{
display:none;
}
div[id],div[class]{
display:block;
}
@jungletek
Copy link

Hey, thanks for this! Was really useful in blocking an annoying inline advert, just chucked it in a Stylish script.

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