From the course: CSS: Print Style Sheets

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Using @page to create page margins

Using @page to create page margins - CSS Tutorial

From the course: CSS: Print Style Sheets

Start my 1-month free trial

Using @page to create page margins

- [Instructor] The last group of properties I want to talk about is the @page property. And some of this is well supported and some of it isn't supported at all. So in this video, I'm going to talk about the @page that is supported. In the next video, it's going to to be about the @page that is not supported, but is incredibly cool and you should keep an eye on. So we'll start here with @page and it's support. This is, of course, can I use? And if you take a quick look here at @page, generally speaking, it's supported, except in Safari. So this is yet another progressive enhancement, though. It's going to work. If you have it available, it's great. If you don't, it's really not that big a tragedy. Basically @page is going to allow you to set printing margins for your page within your document. And that's pretty much all that's going to be supported at this time. So as you scroll on through here, there's a thing called…

Contents