1 reply [Last post]
JediP
JediP's picture
Offline
newbie
Last seen: 4 years 23 weeks ago
Timezone: GMT+1
Joined: 2015-06-08
Posts: 1
Points: 2

Hi
I have a series of drop down lists in a table row, in my asp.net web form. Each ddl can contain a different number, is it possible to use CSS to print only drop down lists with numbers > 0?...if the dropdown list contains a 0 it is not printed, and takes up no space on the printed page. Is this possible?

thanks

J

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 23 hours 45 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9743
Points: 3822

I'd like to see the markup, but...

Make the 0 lists class="zero".

Then in your print.css, set .zero {display: none;}.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.