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 521675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:16:28+00:00 2026-05-13T08:16:28+00:00

What are the right sizes for a webpage to be printed on A4 size

  • 0

What are the right sizes for a webpage to be printed on A4 size paper? What other stuff should be considered?

*inline CSS is preferred in this case

Clarification: This web-page’s only propose is to be printed, since it is a receipt.

Clarification # 2: This web-page is for the internal use of the company I’m working for. They would like it to look professionally designed receipt.

Clarification # 3: This web-page must be printed on one page -of A4 size- only.

  • 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-13T08:16:29+00:00Added an answer on May 13, 2026 at 8:16 am

    Answer

    I’d recommend using two different style sheets.

    For viewing in the browser you could set the table width to the width of an A4 paper: 21cm. (Minus margins 18cm.)

    For printing the size of the table should be “100%”, which means the printer fills the whole width of the page, using the margins given by the browser’s settings. (Those page margins are what makes it impossible for you to make a printout look exactly the same.)

    Possibly working

    Make the table narrow enough to be safe it’s in the page margins. Then center that table vertically.

    Solution for perfect layout

    There’s no way you’re going to achieve that with HTML & CSS, it’s just not designed to allow exact layouts!

    Create PDFs online and let the users download them. Most browsers are able to render PDFs anyway.

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

Sidebar

Related Questions

Something must be wrong with this code right here: + (UIImage*)captureView:(UIView *)theView { UIGraphicsBeginImageContext(theView.frame.size);
Say I have this HTML fragment <td width=25% style=text-align:right; > <span style=font-family: Arial; font-size:
a:3:{i:0;i:4;i:1;i:3;i:2;i:2;} Am I right to say that this is an array of size 3
Right now I have a webpage set up to be exactly the size of
Right now all I am using to calculate the size are the files in
I have three divs page-left page-right flipper I have images of equal size in
I have a css menu on a webpage that is flowed horizontaly, as the
I've trouble centering my webpage using the css: CSS code below: #wrapper { margin-left:auto;
i am trying to make a CSS menu for my webpage for school. I
The two images in the right-hand column of a webpage have been vertically stretched

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.