TheConeHead
Programmer
I have a div that I want to not have printed when a page is printed... anyway to leave it out via css?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<STYLE MEDIA='print'>
div.screenOnly{
display:none;
}
</STYLE>
</head>
<body>
abc<div class='screenOnly'>xyz</div>
</body>
</html>
<html>
<head>
<STYLE MEDIA='print'>
div.screenOnly{
display:none;
}
</STYLE>
<STYLE MEDIA='screen'>
div.screenOnly{
background:blue;
}
</STYLE>
</head>
<body>
abc
<div class='screenOnly'>xyz</div>
</body>
</html>