1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<!DOCTYPE html> <html class="reftest-paged"> <head> <style> @page { size:5in 3in; margin:0.5in; } html, body { padding: 0; margin: 0; } .gradient { display: block; background: linear-gradient(white, green); border: 1px solid; width: 100px; height: 1000px; } </style> </head> <body> <div class="gradient"></div> </body> </html>