Gonzo714
03-17-2013, 05:26 PM
Hello folks,
I am in need of the ability to print a specific UL or OL list from any page.
I could only find 1 site that had any insight to this..... this is what they offered...
#########################################
<!DOCTYPE html
<head>
<style type="text/css" media="print">
body * {
display:none;
}
#print, #print li, #print li img {
display:block;
}
</style>
</head>
<body>
<form action="#" method="post"><label for="print"><input id="print" type="button" name="name" value="Print" size="50" onclick="window.print()" /></label></form>
<ul id="print">
<li>1</li>
<li>1</li>
<li>1</li>
</ul>
</body>
</html>
#####################################
.....which works fine as long as you only have one list to choice from.
How would I alter this to have the ability to print specific lists (ie - list1, list2, list3) with specific Print Buttons (ie print1, print 2, print3)
Below is a non-educated guess on what I need...
#############################################
<!DOCTYPE html
<head>
<style type="text/css" media="print">
body * {
display:none;
}
#print, #print li, #print li img {
display:block;
}
</style>
</head>
<body>
<form action="#" method="post"><label for="print"><input id="print" type="button" name="name" value="Print" size="50" onclick="window.print()" /></label></form>
<ul id="print">
<li>1</li>
<li>1</li>
<li>1</li>
</ul>
<form action="#" method="post"><label for="print1"><input id="print1" type="button" name="name" value="Print1" size="50" onclick="window.print()" /></label></form>
<ul id="print1">
<li>11</li>
<li>11</li>
<li>11</li>
</ul>
</body>
</html>
#####################################################
I hope I explained myself, due to my lack of HTML / CSS knowledge.
Thanks
Gonzo
I am in need of the ability to print a specific UL or OL list from any page.
I could only find 1 site that had any insight to this..... this is what they offered...
#########################################
<!DOCTYPE html
<head>
<style type="text/css" media="print">
body * {
display:none;
}
#print, #print li, #print li img {
display:block;
}
</style>
</head>
<body>
<form action="#" method="post"><label for="print"><input id="print" type="button" name="name" value="Print" size="50" onclick="window.print()" /></label></form>
<ul id="print">
<li>1</li>
<li>1</li>
<li>1</li>
</ul>
</body>
</html>
#####################################
.....which works fine as long as you only have one list to choice from.
How would I alter this to have the ability to print specific lists (ie - list1, list2, list3) with specific Print Buttons (ie print1, print 2, print3)
Below is a non-educated guess on what I need...
#############################################
<!DOCTYPE html
<head>
<style type="text/css" media="print">
body * {
display:none;
}
#print, #print li, #print li img {
display:block;
}
</style>
</head>
<body>
<form action="#" method="post"><label for="print"><input id="print" type="button" name="name" value="Print" size="50" onclick="window.print()" /></label></form>
<ul id="print">
<li>1</li>
<li>1</li>
<li>1</li>
</ul>
<form action="#" method="post"><label for="print1"><input id="print1" type="button" name="name" value="Print1" size="50" onclick="window.print()" /></label></form>
<ul id="print1">
<li>11</li>
<li>11</li>
<li>11</li>
</ul>
</body>
</html>
#####################################################
I hope I explained myself, due to my lack of HTML / CSS knowledge.
Thanks
Gonzo