Jump to content

Print to 4x6 index card


Moby

Recommended Posts

Using w3css and I'm not a web developer so assume I know very little.

Is there a way to print something so that it will fit a 4x6 index card?

This is my code:

Quote

<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<body>
<div class="w3-card-2 w3-margin" style="width:95%">
  <div class="w3-display-container w3-text-white">
    <img src="flavorCard.png" alt="Lights" style="width:100%">
    <div class="w3-xxlarge w3-display-middle w3-padding">Big Text</div>
    <div class="w3-medium w3-display-bottomright w3-padding">small text</div>
  </div>
</div>
</div>
</body>
</html>

When loaded in a browser it looks OK but the print preview never fits well. Either it prints partially onto a second page or it has more white space on one side.

Hope my question is clear.

Thanks to all,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...