background preloader

CSS

Facebook Twitter

CSS: feuille de style pour une mise en page à l'impression. Roland Skop Il s'agit ici d'un article traduit de l'allemand par la rédaction de SELFHTML actuel.

CSS: feuille de style pour une mise en page à l'impression

Veuillez poser vos questions relatives à cet article uniquement à son auteur, prenant compte que celui-ci ne maîtrise peut-être pas la langue française! Remarques sur le sujet Pour obtenir une sortie imprimée au formatage idéal, il est possible de mettre en œuvre une programmation côté serveur qui élimine les passages superflus du code source HTML, ajoute les informations complémentaires etc...Ce n'est cependant qu'exceptionnellement nécessaire pour des transformations fondamentales étant donné que les CSS offrent la possibilité de fixer différentes mises en page selon les médias de sortie – il n'est donc pas indispensable d'établir une page HTML spéciale. Cet article traite de l'établissement d'une mise en page pour la sortie imprimée, vous n'êtes cependant pas obligé d'imprimer impérativement pour voir le résultat.

Incorporation de types de média dans une feuille de style. Attention: Remarque: CSS Mobile Profile 2.0. Abstract This specification defines in general a subset of CSS 2.1 [CSS21] that is to be considered a baseline for interoperability between implementations of CSS on constrained devices (e.g. mobile phones).

CSS Mobile Profile 2.0

Its intent is not to produce a profile of CSS incompatible with the complete specification, but rather to ensure that implementations that due to platform limitations cannot support the entire specification implement a common subset that is interoperable not only amongst constrained implementations but also with complete ones. Additionally, this specification aligns itself as much as possible with the OMA Wireless CSS 1.1 [WCSS11] specification. At the same time, OMA is doing alignment work in OMA Wireless CSS 1.2 [WCSS12]. It is aimed at aligning the mandatory compliance items between CSS Mobile Profile 2.0 and OMA Wireless CSS 1.2 [WCSS12]. Status of this document This section describes the status of this document at the time of its publication.

Table of Contents 1. 2. Printing a Book with CSS: Boom! HTML and CSS, two of our favorite acronyms, are normally associated with web pages.

Printing a Book with CSS: Boom!

And deservedly so: HTML is the dominant document format on the web and CSS is used to style most HTML pages. But, are they suitable for off-screen use? Can CSS be used for serious print jobs? To find out, we decided to take the ultimate challenge: to produce the next edition of our book directly from HTML and CSS files.

In this article we sketch our solution and quote from the style sheet used. Article Continues Below The studious reader may want to fetch a sample HTML file, sample style sheet, as well as the PDF file generated by Prince. Print vs. pixel#section1 A printed book has many features not seen on screens. Web browsers are good at dealing with pixels on a screen, but not very good at printing. CSS2#section2 CSS2 has a notion of paged media (think sheets of paper), as opposed to continuous media (think scrollbars).

Having a US-based publisher, we were given the page size in inches. CSS3#section3.