Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container color-background">
  <h1 class="text-center"> <strong>U.S. Coast Guard</strong>
  </h1>
  <h2 class="text-center">Yes, we're military too!
  </h2>

  <img style="" class="image thin-black-border" src="http://www.gocoastguard.com/sites/default/files/styles/homepage_slide/public/uploads/home/slides/13768_cg_gocoastguard-slider_city_940x449_copy.jpg?itok=LzR3MswL" alt="45' smallboat patrolling NY harbor">

  <h3 class="text-center">A short history of the Coast Guard</h3>

 <div>
    <ul class="ul-1">
      <li><strong>1790</strong> Alexander Hamiltion established the United States Revenue Cutter Service
      </li>
      <li><strong>1915</strong> The Revenue Cutter Service merged with the US Life-Saving Service, forming the "modern day Coast Guard"
      </li>
      <li><strong>1939</strong> The "Coast Guard" expands with the addition of the Lighthouse Service
      </li>
      <li><strong>1946</strong> The Bureau of Marine Inspection and Navigation is added
      </li>
      <li><strong>1967</strong> USCG is transferred from the Department of Treasury to the Department of Transportation
      </li>
      <li><strong>2003</strong> The Coast Guard is transferred to the Department of Homeland Security
      </li>
    </ul>
    </div>

  <h4 class="text-center"><strong>The USCG sure feels like the military to me!</strong></h4>
  <p>
    Many people do not realize that although we do not fall under the Department of Defense, the USCG is one of the five armed forces of the United States. The other branches, of course, being:
    <ul class="ul-2">
      <li>Army</li>
      <li>Navy</li>
      <li>Marines</li>
      <li>Air Force</li>
    </ul>
  </p>
  <p>
    The Coast guard is subject to the same laws as every other military branch: the <strong>Uniform Code of Military Justice</strong>. Members of the Coast Guard also go through boot camp just like all other branches and, speaking from experience, it
    wasn't easy.
  </p>
  <p>
    I joined the Coast Guard in April 2014 and graduated from recruit company Sierra-189 as a Fireman Apprentice (E2) from Training Center Cape May, NJ in June 2014. My first unit was aboard the Coast Guard cutter Spencer (WMEC 905) homeported in Boston,
    MA. I was assigned to the Auxiliary machinery dept. During my stay on Spencer, I made multiple North Atlantic patrols travelling from Virginia Beach to Halifax, Nova Scotia. Working aboard a ship was one of the most difficult and rewarding experiences
    of my life. It was long hours, exhausting work, and little sleep. In August 2015 recieved orders to "A" school in Yorktown, VA and graduated as a Damage Controlman 3rd class. I am now stationed in the Facilities Engineering Dept on Coast Guard Base
    Cape Cod. In my time in the USCG, I've had opportunities to see and do things that I could not have gotten in any other career.
  </p>
  <h5 class="text-center"><strong>
  Semper Paratus</strong></h5>

<img class="smaller-image thin-blue-border" src="https://s-media-cache-ak0.pinimg.com/736x/50/c1/a3/50c1a34e4a0736ed5fc9fd8a392fe3a3.jpg" alt= "Coast Guard Seal">
<p class="p1">
  This page was written and coded by <a href="https://codepen.io/AllDamageNoControl/" target="_blank">Brennan Stockdale</a> and this page does not necessarily reflect the views and opinions of the US Coast Guard
</p>
<p>
  For more information about the Coast Guard please visit <a href="http://www.gocoastguard.com/careers?gclid=CjwKEAjwgdS-BRDA7fT68f6s8zMSJADZwHmvYhAOQEvfMFp5VO-1-JoyUY30P753HfgRbOhDRXjlOhoCA-jw_wcB" target="_blank">gocoastguard.com</a></p>

</div>
              
            
!

CSS

              
                body {
  margin: 60px;
}
    h1 {
      font-size: 60px;
    }
    h4 {
      padding-top: 30px
    }
    h5{
      font-size: 22px;
    }
    .color-background {
      background-color: rgb(200, 200, 255);
    }
    
    .ul-1 {
      list-style-position: inside;
      padding-left: 20%;
      
    }
    .ul-2 {
      list-style-position: inside;
      padding-left: 47%;
    }
    p {
      font-size: 15px;
      text-align:center;
    }
    .p1 {
      padding-top: 5%;
    }
    
    .image {
      width: 75%;
      display: block;
      margin: auto;
    }
    .smaller-image {   
      width: 18%;
      display: block;
      margin: auto;
    }
    .thin-blue-border{
      border-color: blue;
      border-width: 1px;
      border-style: solid;
      border-radius: 50%;
      
    }
    .thin-black-border {
      border-color: black;
      border-width: 3px;
      border-style: solid;
    }
    
              
            
!

JS

              
                
              
            
!
999px

Console