armanbena
asked on
Have section of code not render with use of css
Hi,
I have some code that want to have not be rendered (or space held) in html. But if a person should choose to print a pdf of the file, it will produce.
I tried this using a css.
#showit {visibility: visible;}
#hideit {display:block;}
What I'm trying to get to be ignored is a closing table tag. I want the table to be continuous in the html. If it should print then I am closing the table so it doesn't run off the page.
I tried display:none as well. That did not work. Is there something I can use that can set it to ignore completely unless I print?
Thanks!!
I have some code that want to have not be rendered (or space held) in html. But if a person should choose to print a pdf of the file, it will produce.
I tried this using a css.
#showit {visibility: visible;}
#hideit {display:block;}
What I'm trying to get to be ignored is a closing table tag. I want the table to be continuous in the html. If it should print then I am closing the table so it doesn't run off the page.
I tried display:none as well. That did not work. Is there something I can use that can set it to ignore completely unless I print?
Thanks!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window