Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 528773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:01:18+00:00 2026-05-13T09:01:18+00:00

How to make cross size and cross browser compatible print CSS for World’s most

  • 0
  1. How to make cross size and cross browser compatible
    print CSS for World’s most use
    paper sizes to get print
    ?

              A4, A3, Legal etc 
    
  2. How we can same almost similar
    formatting to our site page’s like
    MS word ? What are best practices to
    get consistency in formatting of
    print page from any popular
    browsers?

  3. How to set cross browser margin and
    font-size with consistency for all
    like MS word does?
  4. Is css font-size unit em best
    for both screen and print? or we should use pt or px in print css? and i saw first time here new css property body {width: 7in}.
  5. Can we set different CSS (with or
    without help of JavaScript) for
    color and B&W print (if i want to give different light color to save ink in B&W print?
  6. Should we give fixed width to print
    css if we are making fluid site for
    screen to get print on paper (which
    has fixed width)?

What about this? any suggestion?

body                             {margin: 15px; }
#mainContainer                   {width: 842px; /* equivalent to A4 */ margin: 0; }
#header                          {display: none; }
form                             {display: none!important; }
#footer                          {display: none; }
#mainContent #leftCol            {display: none; }
#mainContent #rightCol           {display: none; }
#mainContent #contentSection     {float: none; padding: 0; margin: 0; font-size: 13px; width: 100%; }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:01:18+00:00Added an answer on May 13, 2026 at 9:01 am

    You can specify print-only stylesheets using <link rel="stylsheet" type="text/css" media="print" href="print.css">

    1. The user has to specify the page size in their print dialog. You were able to suggest the page’s orientation in CSS2 using @page but it was dropped in 2.1. See here and here for excellent introductions into print stylesheets.

    2. The usual quirks apply, like differences in the box model. The only best practice that comes to mind is keep it simple, don’t use position: absolute, and test a lot. Install a PDF printing driver for testing.

    3. You should be able to specify those in your print stylesheet.

    4. Using pt, being a physical unit, should produce consistent results on every machine.

    5. No. You will have to have the user pick the right stylesheet beforehand.

    6. If you don’t want your printout to consist of five pages next to each other, probably yes. However, you would only do that in your print stylesheet.

    Remember that in the default settings, all browsers will print a proprietary header and footer that only the user can remove in their print dialog.

    If you want total control over every inch of your print product – including size and orientation – you will need to start generating PDFs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 357k
  • Answers 357k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You probably want to call setlocale() first, "LC_ALL" should do… May 14, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer Linux Ubuntu Desktop Jaunty Firebug FireCookie Pixel Perfect Web developer… May 14, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer Your code should look like this: var par = [];… May 14, 2026 at 9:06 am

Related Questions

I maintain a cross platform application, based on PyQt that runs on linux mac
I'm writing C cross-platform library but eventually I've got error in my unittests, but
I have an input PDF file (usually, but not always generated by pdfTeX), which
I am consuming service of random.org, (I want to get the numbers from random.org
Duplicate: What is the best way to create rounded corners How to make a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.