Home > Article > Web Front-end > Does CSS Page Numbering Work in Web Browsers for Printing?
Browser Support for CSS Page Numbers: A Comprehensive Exploration
Ever wondered if web browsers support CSS page numbers for print versions? This query has sparked much debate in the developer community.
Question:
Despite the perceived advantages of CSS page numbers, it has been frustrating for some users to implement them effectively. Attempts across various platforms and browsers, including Chrome, Firefox, and IE9 on Windows 7, have yielded unsatisfactory results. Is CSS page numbering truly supported in any web browser for printing?
Answer:
After thorough research, it's evident that no mainstream web browser currently supports CSS page numbering. The key obstacle lies in the lack of browser support for margin boxes. This crucial feature, essential for page numbering, remains absent in web browsers.
Assessment:
The Wikipedia page linked below provides a comprehensive comparison of layout engines for Cascading Style Sheets (CSS). The table titled "Grammar and Rules" specifically highlights the missing margin box support in browsers.
http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(Cascading_Style_Sheets)
The absence of margin box support poses a significant limitation for web developers seeking to implement advanced print formatting techniques. Without this feature, page numbering, running headers, and footers remain elusive in web browsers.
The above is the detailed content of Does CSS Page Numbering Work in Web Browsers for Printing?. For more information, please follow other related articles on the PHP Chinese website!