Created
April 14, 2024 01:37
-
-
Save caio-andres/3d0b2c8ee8f7b98bf0fa07beadf3f0f4 to your computer and use it in GitHub Desktop.
Print a element by id | CSS - @media tip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media print { | |
body * { | |
visibility: hidden; | |
} | |
#idWhichYouWillPrint, | |
#idWhichYouWillPrint * { | |
visibility: visible; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment