CSS @media rule


Ease the Pain with IE6 Printing describes how to turn some elements on on the screen, but turn them off when we going to print the page out.

This is possible by using CSS @media rule, part of CSS2 standard.

ถ้าใช้เท็มเพลตของ Blogger.com ก็ใส่โค้ดนี้เข้าไปหลัง <style>

@media print {
 #header, #description, #sidebar { display: none; }
}

 

ประหยัดกระดาษได้เหมือนกันนะ


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.