Oasis Student Information Systems > Help Desk > Knowledgebase

Search help:


Letters: Building CSS - Backgrounds

Solution

 

HTML DOM
<div class="page">
<h1 style="text-align: center; color: white; margin-top: 2in;">Sample Image</h1>
<p style="text-align: center; font-size: 1.2em;">- background -</p>
</div>​
CSS <STYLLE>
 <style>
  body {
    margin: 0;
    padding: 0;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .page {
    width: 8.5in;
    height: 11in;
    background-image: url(" ... your image url here ... ");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    overflow: hidden;           /* Prevent content overflow */
  }

  @media print {
    @page {
      size: letter;
      margin: 0;
    }

    body {
      background: none;
      padding: 0;
      margin: 0;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }

    .page {
      box-shadow: none;
      width: 8.5in !important;
      height: 11in !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden;
    }
  }
</style>​
xmhU2CGtTcQ9kQB---invoice1.jpeg

Upload your photo using the
Letters --> Files tool
then use the URL provided
to insert into your letter

 

 
Was this article helpful? yes / no
Related articles What are the Merge Fields for Registrar Fields?
What are the Merge Fields for Finance Fields?
What are the Merge Fields for Development Fields?
Article 136: How Do I Create A Custom Form?
Article 572: How Do I Add A Survey Question ?
Article 569: How Do I Add "Images" To My Survey?
Article details
Article ID: 592
Category: Letters
Rating (Votes): Article not rated yet (0)

 
« Go back

 
Powered by Help Desk Software HESK, brought to you by SysAid