Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm printing a page of my PHP application with the ( ctrl + P ) (default printing). How can i make sure that the CSS (tables, padding, cellspacing, background picture with opacity) are printed along with the sheet. I'm calling the CSS from another file.

Thanks for your help and time.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The web-browser should normally apply the CSS settings when printing. It shouldn't matter that the CSS is in a separate file rather than inline.

CSS allows for different styling for printing (or other media) - so some pages are deliberately made to print differently (e.g. omitting menus and breadcrumb trails etc).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.