Advertisement
oshkoshbagoshh

w3 Schools CSS Kitchen Sink

Aug 10th, 2019
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta http-equiv="x-ua-compatible" content="ie=edge">
  6.   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.  
  8.     <link rel="stylesheet" text="text/css" href="w3.css">
  9.    
  10.   <title> BALLGAME SITE </title>
  11.  
  12.  
  13. </head>
  14.  
  15. <body class="w3-content" style="max-width:500px">
  16.    
  17.    
  18.    
  19.    
  20.     <div class="w3-container w3-teal">
  21.        
  22.        
  23.   <h1> The Ballgame  </h1>
  24.  
  25. </div>
  26.   <div class="w3-container">
  27.       <h3> Overview </h3>
  28. <p> <strong> Ballgame - The Streak- ?? </strong> is a realtime -sports application that allows spectators to interact with the Cubs/MLB (their favorite team) during live game play.</p>
  29.  
  30.  
  31. Users will create an account where their statistics (sports knowledge) will be tracked and compared against other users/ personal friend groups</p>
  32.  
  33. <strong> Reward: </strong> end of game total points reached ( reach set goal)</p>
  34. </div>
  35.  
  36.  
  37.  
  38. <p>
  39.    
  40.    
  41.     <div class="w3-container w3-teal">
  42.         <p>
  43.         Footer. </p>
  44.     </div>
  45.    
  46.    
  47.    
  48.     <div class="w3-panel w3-red">
  49.         <h3> DANGER! </h3 >
  50.             <p> Panels can be used as warnings </p>
  51.         </div>
  52.            
  53.             <div class="w3-panel w3-yellow">
  54.                 <h3> Warning </h3 >
  55.                 </div >
  56.                    
  57.             <div class="w3-panel w3-blue">
  58.                 <h3> Info </h3 >
  59.                 </div >
  60.                 <div class="w3-panel w3-green">
  61.                     <h3> Positive. </h3 >
  62.                     </div >
  63.                
  64.                
  65.            
  66.             <br>
  67.             <hr>
  68.             <h3> Card Class </h3>
  69.            
  70.             <p> Can be used for images and notes</p>
  71.            
  72.            
  73.             <hr>
  74.            
  75.             <h3> Tables!  </h3>
  76.             <hr>
  77.                
  78.         <div class="w3-container">
  79.             <h2> Border around table </h2>
  80.             <p> use the w3-border class to add a border </p>
  81.             <table class="w3-table w3-striped w3-border">
  82.                
  83.                 <tr>
  84.                     <th> City </th>
  85.                     <th> Team </th>
  86.                     <th> Division </th>
  87.                     <th> World Series Titles </th>
  88.                     <th> Penants </th>
  89.                     <th> Hall of Famers </th>
  90.                 </tr>
  91.                 <tr>
  92.                     <td>New York</td>
  93.                     <td> Yankees</td>
  94.                     <td> AL Central </td>
  95.                     <td> 100-62 </td>
  96.                     <td> 27 </td>
  97.                     <td> a lot </td>
  98.                 </tr>
  99.                 <tr>
  100.                     <td>Boston</td>
  101.                     <td> Red Sox </td>
  102.                     <td> AL Central </td>
  103.                     <td> 100-62 </td>
  104.                     <td> 5 </td>
  105.                     <td> a lot </td>
  106.                 </tr>
  107.                 <tr>
  108.                     <td> Miami </td>
  109.                     <td> Marlins </td>
  110.                     <td> AL Central </td>
  111.                     <td> 62 - 100 </td>
  112.                     <td> 27 </td>
  113.                     <td> a little  </td>
  114.                 </tr>
  115.                
  116.                
  117.                
  118.             </table>
  119.         </div>
  120.        
  121.        
  122.         <div class="w3-container">
  123.           <h2>List Header</h2>
  124.           <p>An example of how to add a heading element inside the list item.</p>
  125.  
  126.           <ul class="w3-ul w3-border">
  127.             <li><h2>Names</h2></li>
  128.             <li>Jill</li>
  129.             <li>Eve</li>
  130.             <li>Adam</li>
  131.           </ul>
  132.         </div>
  133.        
  134. <div class="w3-container">
  135.   <h2>W3.CSS Tags</h2>
  136.   <p>You can use a color class to change the color of a tag.</p>
  137.   <p><span class="w3-tag w3-blue">New!</span></p>
  138.   <p><span class="w3-tag w3-teal">More Later!</span></p>
  139. </div>
  140.  
  141.  
  142. <h1> Tags (large signs) <h1>
  143. <div class="w3-tag w3-xxlarge w3-orange">London Zoo</div>
  144.  
  145.  
  146. <div class="w3-row">
  147.   <div class="w3-col" style="width:20%"><p>20%</p></div>
  148.   <div class="w3-col" style="width:60%"><p>60%</p></div>
  149.   <div class="w3-col" style="width:20%"><p>20%</p></div>
  150. </div>
  151.  
  152.  
  153. <div class="w3-container w3-card w3-indigo">
  154.   <h1>Card with Container </h1>
  155. </div>
  156.  
  157. <ul class="w3-ul">
  158.   <li>
  159.     <h3>w3-content goes here.</h3>
  160. </li>
  161. </ul>
  162. <!------
  163.    <p>The w3-content class defines a container for fixed size centered content. Use the CSS max-width property to override the default width (980px).</p>
  164.  </li>
  165.  <li>
  166.    <h3>The Fault in Our Stars</h3>
  167.    <p>Touching, gripping and genuinely well made.</p>
  168.  </li>
  169.  <li>
  170.    <h3>The Avengers</h3>
  171.    <p>A huge success for Marvel and Disney.</p>
  172.  </li>
  173. </ul>
  174.  
  175. <div class="w3-container w3-indigo w3-xlarge">
  176.  <h5>Movies 2014</h5>
  177. </div>
  178.  
  179.  
  180.  
  181. -->
  182. <div class="w3-cell-row" style="width:75%">
  183.     <div class="w3-container w3-red w3-cell">
  184.       <p> Cell 1.</p>
  185.     </div>
  186.  
  187.     <div class="w3-container w3-green w3-cell">
  188.       <p> Cell 2 </p>
  189.     </div>
  190. </div>
  191.    
  192.    
  193.  
  194.  
  195.     <h2>Bar Links</h2>
  196.     <p>Providing navigation is a typical use for bars:</p>
  197.     <div class="w3-bar w3-blue">
  198.       <a href="#" class="w3-bar-item w3-hover-green">London</a>
  199.       <a href="#" class="w3-bar-item w3-hover-green">Paris</a>
  200.       <a href="#" class="w3-bar-item w3-hover-green">Tokyo</a>
  201.     </div>
  202.     <br>
  203.     <div class="w3-bar-block w3-black" style="width:120px">
  204.       <a href="#" class="w3-bar-item w3-hover-green">London</a>
  205.       <a href="#" class="w3-bar-item w3-hover-green">Paris</a>
  206.       <a href="#" class="w3-bar-item w3-hover-green">Tokyo</a>
  207.     </div>
  208.  
  209.     </div>
  210.    
  211. <h1> Hover/Dropdowns </h1>
  212. <p> Three main Classes are  1) w3-dropdown-hover 2) w3-dropdown-content (whats displayed) and 3)  w3-dropwndown-click.
  213.     The third one actually uses Javascript.</p>
  214.    
  215.     <div class="w3-bar w3-light-grey">
  216.         <a href="#" class="w3-bar-item w3-button"> Home </a>
  217.         <a href="#" class="w3-bar-item w3-button"> Link1 </a>
  218.         <div class="w3-dropdown-hover">
  219.             <button class="w3-dropdown-hover">Dropdown</button>
  220.             <div class="w3-dropdown-content w3-bar-block w3-card-4">
  221.                 <a href="#" class="w3-bar-item w3-button">Link 1</a>
  222.                       <a href="#" class="w3-bar-item w3-button">Link 2</a>
  223.                       <a href="#" class="w3-bar-item w3-button">Link 3</a>
  224.                     </div>
  225.                   </div>
  226.                 </div>
  227.    
  228.     <br>
  229.     <h2> Accordion</h2>
  230.     <p> used to show and hide html content. </p>
  231.    
  232.    
  233.     <button onclick="myFunction('Demo1')" class="w3-btn w3-block w3-black w3-left-align">Open Section 1</button>
  234.     <div id="Demo1" class="w3-container w3-hide">
  235.       <h4>Section 1</h4>
  236.       <p>Some text..</p>
  237.     </div>
  238.  
  239.     </div>
  240.     <script>
  241.     function myFunction(id) {
  242.       var x = document.getElementById(id);
  243.       if (x.className.indexOf("w3-show") == -1) {
  244.         x.className += " w3-show";
  245.       } else {
  246.         x.className = x.className.replace(" w3-show", "");
  247.       }
  248.     }
  249.     </script>
  250. </body>
  251. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement