Advertisement
snail-legs

layout: side by side

Aug 1st, 2020 (edited)
650
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="container" style="max-width: 60em; margin: auto;">
  2.   <div class="row no-gutters">
  3.      
  4.     <!-- image/s -->
  5.     <div class="col-sm-5">
  6.        
  7.       <!-- there are technically two images here,
  8.        which image is shown depends on the device that the viewer is using
  9.        you can use different images here, or the same one! -->
  10.       <!-- this image should be visible on tablets/desktops -->
  11.       <div style="background: url(https://media.discordapp.net/attachments/730913454726316074/737635200447676436/dragon.png); background-size: cover; background-position; center; height: 30em;" class="d-none d-sm-block"></div>
  12.      
  13.       <!-- this image should be visible on mobile -->
  14.       <div style="background: url(https://media.discordapp.net/attachments/730913454726316074/739132619807260734/redraw_dragon_crop.png); background-size: cover; background-position; center; height: 15em;" class="d-sm-none"></div>
  15.      
  16.     </div>
  17.    
  18.     <!-- written content -->
  19.     <div class="col-sm-7 card bg-faded" style="height: 30em; overflow-y: scroll; border: 0; border-radius: 0;">
  20.        
  21.       <!-- header -->
  22.       <div class="card-header" style="line-height: 0.2em;padding-bottom: 2em;">
  23.         <h1 class="display-4 text-primary">Character Name</h1>
  24.         <p class="text-secondary">pronouns | title/quote</p>
  25.       </div>
  26.      
  27.       <!-- bio, quote, playlist, trivia and design notes!  you can add/remove sections here as you need them, I just wanted to include one of each type for you! -->
  28.       <div style="padding: 1em 2em;">
  29.          
  30.         <!-- bio -->
  31.         <h3 class="text-primary">Biography</h3>
  32.         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
  33.        
  34.         <!-- quote -->
  35.         <hr style="width: 90%; padding: 0.1em;">
  36.         <h4 class="text-primary" style="text-align: center;"><i>"put a quote, or song lyrics here!"</i></h4>
  37.         <hr style="width: 90%; padding: 0.1em;">
  38.        
  39.         <!-- playlist -->
  40.         <h3 class="text-primary">Playlist</h3>
  41.         <ul class="fa-ul">
  42.             <li style="margin: 0.25em;"><span class="fa-li text-primary"><i class="fas fa-play"></i></span><a href="#">song name</a> | artist</li>
  43.             <li style="margin: 0.25em;"><span class="fa-li text-primary"><i class="fas fa-play"></i></span><a href="#">song name</a> | artist</li>
  44.             <li style="margin: 0.25em;"><span class="fa-li text-primary"><i class="fas fa-play"></i></span><a href="#">song name</a> | artist</li>
  45.         </ul>
  46.         <hr style="width: 90%; padding: 0.1em;">
  47.        
  48.         <!-- trivia and design notes -->
  49.         <div class="row">
  50.            
  51.           <!-- trivia -->
  52.           <div class="col-sm-6">
  53.             <h3 class="text-primary">Trivia</h3>
  54.             <ul class="fa-ul">
  55.               <li><span class="fa-li text-primary"><i class="fad fa-stars"></i></span>lorem ipsum</li>
  56.               <li><span class="fa-li text-primary"><i class="fad fa-stars"></i></span>lorem ipsum</li>
  57.               <li><span class="fa-li text-primary"><i class="fad fa-stars"></i></span>lorem ipsum</li>
  58.             </ul>
  59.           </div>
  60.          
  61.           <!-- design notes -->
  62.           <div class="col-sm-6">
  63.             <h3 class="text-primary">Design Notes</h3>
  64.             <ul class="fa-ul">
  65.               <li><span class="fa-li text-primary"><i class="fad fa-stars"></i></span>lorem ipsum</li>
  66.               <li><span class="fa-li text-primary"><i class="fad fa-stars"></i></span>lorem ipsum</li>
  67.               <li><span class="fa-li text-primary"><i class="fad fa-stars"></i></span>lorem ipsum</li>
  68.             </ul>
  69.           </div>
  70.         </div>
  71.       </div>
  72.      
  73.       <!-- footer/code credit, please keep the credit intact!!  this is probably a good place to add image credit as well, if you need to. -->
  74.       <p class="text-secondary card-footer" style="text-align: center; padding-bottom: 1em;">code by [<a href="https://toyhou.se/snail-legs">snail-legs</a>]</p>
  75.     </div>
  76.   </div>
  77. </div>
  78.  
  79.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement