Skip to content

Instantly share code, notes, and snippets.

@felipefialho
Last active November 24, 2016 20:42
Show Gist options
  • Save felipefialho/55e569db814e04d67dc6355e4ce621fa to your computer and use it in GitHub Desktop.
Save felipefialho/55e569db814e04d67dc6355e4ce621fa to your computer and use it in GitHub Desktop.
[CSS Trick] Hide dynamic element that break the layout when it is empty.

Hide dynamic element that break the layout when it is empty.

&:empty
  display none

!important, it can't have space on HTML

✌️

@twobanks
Copy link

Ótima dica!!

@rogeralbinoi
Copy link

Opa!

Vlew a dica, não tinha pensado nisso.

@interaminense
Copy link

Nice man!!!

@wederson
Copy link

Muito bom!

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