SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Printing With CSS
-
Oct 17, 2001, 21:52 #1
Printing With CSS
I encourntered a recent article in A List Apart and printed it out. Despite the borders on the page...the printed page came out like it had been printed from a print only page.
The sidebar of that article page said that this was possible through CSS. Can anybody explain how this is done?
-
Oct 17, 2001, 22:00 #2
- Join Date
- Apr 2001
- Location
- San Francisco
- Posts
- 3,288
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Not sure how it's done, but it is done with CSS. If you take a look at the code of that page, you will see that there are not tables. It is structured with CSS.
SPF Mentor/Advisor 2001-2003
SPF Designer of the Year 2002
SPF Graphic Designer of the Year 2003
AdamPolselli.com
-
Oct 18, 2001, 07:12 #3
- Join Date
- Oct 2000
- Location
- Nashvegas Baby!
- Posts
- 7,845
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Read this page on the W3C site. What A List Apart is using is called the @Media rule. It tells the browser to use one set of styles and the printer to use another set:
http://www.w3.org/TR/REC-CSS2/media.htmlAdobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
-
Oct 18, 2001, 08:21 #4
thanks creole!
Bookmarks