Home >Web Front-end >CSS Tutorial >How to Prevent Website URLs from Printing in Your CSS?
Removing Website URLs from Printed CSS
In your print stylesheet, you've encountered the issue of website URLs printing on each page. As you're formatting specific pages as a booklet, these URLs are unnecessary.
Mozilla Firefox: HTML Margin Boxes
Specifically for Firefox, you can utilize the HTML margin boxes attribute:
<html moznomarginboxes mozdisallowselectionprint>
Replace the standard tag with this custom attribute to eliminate URLs from printing.
Other Browsers
While a solution for Firefox is available, other browsers do not offer a direct option to suppress URL printing. However, you may explore cross-browser solutions:
The above is the detailed content of How to Prevent Website URLs from Printing in Your CSS?. For more information, please follow other related articles on the PHP Chinese website!