Jump to content
Moby

Print to 4x6 index card

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,

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...