said_fox
06-02-2008, 03:41 PM
Hello,
I have a web page and it is linked to a css file. In this page I have an element (fieldset) and It is given the id RepCont.
I want to make, display none for any other elements in another linked css file for priniting the page, allowing only RepCont to be displayed.
I want doing this regardless what other elements are i.e their tags name, classes or ids. I just want make the printer media to see the element of id RepCont.
I tried the following, but it seems very stupid idea:
@charset "utf-8";
/* CSS Document */
body{display:none}
#RepCont {display:block;}
However, I need your ideas!
I have a web page and it is linked to a css file. In this page I have an element (fieldset) and It is given the id RepCont.
I want to make, display none for any other elements in another linked css file for priniting the page, allowing only RepCont to be displayed.
I want doing this regardless what other elements are i.e their tags name, classes or ids. I just want make the printer media to see the element of id RepCont.
I tried the following, but it seems very stupid idea:
@charset "utf-8";
/* CSS Document */
body{display:none}
#RepCont {display:block;}
However, I need your ideas!