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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:58:46+00:00 2026-06-04T22:58:46+00:00

Given the following HTML code, why is it that when this document is printed

  • 0

Given the following HTML code, why is it that when this document is printed in different browsers you get completely different results? All I want is to be able to generate a “page” from a javascript web-app that prints to a known scale! Seems pretty simple, but so far has been almost impossible to achieve.

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <svg width="210mm" height="297mm"
        xmlns="http://www.w3.org/2000/svg" version="1.2">

        <rect x="300" y="300" width="1in" height="1in" fill="red"/>
        <text x="100" y="100" font-size="1in">Hello</text>

    </svg>
</body>
</html>
  • 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-06-04T22:58:48+00:00Added an answer on June 4, 2026 at 10:58 pm

    Different Browser may differ when applying styles for printing.

    If you want to have a consistent result across browsers, define your own print-styles.

    Like this:

    <link rel="stylesheet" type="text/css" href="print.css" media="print" />
    

    edit: Some links on how to achieve good printing results:

    What are most useful media="print" specfic ,cross browser compatible css properties?
    -> Link to A List Apart which normally has very good articles

    How to get cross browser compatibility in Print on page from all browsers?

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

Sidebar

Related Questions

I have the following html code (in the given order) <div id=content>...</div> <div id=footer>...</div>
Given the following HTML <b>demo</b> I want to save it to an SQL 2005
Given the following HTML <div classmyclass>10</div> <div classmyclass>25</div> <div classmyclass>50</div> <div classmyclass>20</div> I want
Given the following HTML: <ul> <li class=imgThumbLi> <img src=larry.jpg/> </li> <li class=imgThumbLi> <img src=curly.jpg/>
Given the following html: <div id='foo'> <div class='prodbar'> <div class='title'>Group 1</div> <div class='product'>Product #1</div>
Given the following HTML output from my aspx page, which displays a checkboxlist; <div
Given the following html: <tr> <td>Content</td> <td>Content</td> <td>Content</td> <td><img id=imgProductPurchased runat=server visible=true alt=Product Purchased
Given the following html table and script shown below I am having a problem
Given the following HTML <div style=width: 500px; height: 500px; border: 1px solid red;> <div
Given the following HTML form: <form id=myform> Company: <input type=text name=Company value=ACME, INC./> First

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.