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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <!DOCTYPE html>

<html>


<head>


  <title>
    cmonaghan.com
  </title>

  <link rel="stylesheet" type="text/css" href="Main.css">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="Main.js"></script>

  <style>
    .login {
      
      background-size: cover;
      height: 300px;
      display: inline-block;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      background-color: red;
      
      
    }
    
    .InputDiv {
      height: 30%;
      width: 40%;
      bottom: 0;
      background-color: rgba(21, 75, 75, 0);
    }
    
    input {
      font-size: 20px;
      background-color: green;
      background-color: rgba(47, 79, 79, 0);
      width: 100%;
      border-color: blue;
      border-color: rgba(47, 79, 79, 0);
      color: #72d33f;
      height: 20px;
      text-align: center;
    }
    
    ::-webkit-input-placeholder {
      color: rgba(192, 255, 240, 0.35);
    }
    
    ::-moz-placeholder {
      color: rgba(192, 255, 240, 0.35);
    }
    
    :-ms-input-placeholder {
      color: rgba(192, 255, 240, 0.35);
    }
    
    :-moz-placeholder {
      color: rgba(192, 255, 240, 0.35);
    }
    
    button {
      font-size: 20px;
      width: 100%;
      background-color: red;
      background-color: rgba(73, 160, 96, 0.42);
      border-color: red;
      border-color: rgba(240, 248, 255, 0);
      -webkit-transition: all .3s ease-in-out;
      -moz-transition: all .3s ease-in-out;
      -ms-transition: all .3s ease-in-out;
      -o-transition: all .3s ease-in-out;
      transition: all .3s ease-in-out;
    }
    
    button:hover {
      background-color: rgb(117, 255, 208);
      transition: 0.3s;
    }
  </style>
</head>

<body class="journal-img">

  <header>

    <nav>
      <ul>
        <li><a href="index.html" class="active"> Blog </a></li>
        <li><a href="SketchBook.html">SketchBook</a></li>
        <li><a href="Videos.html">Videos</a></li>
        <li><a href="About.html">About</a></li>
      </ul>
    </nav>
    <div class="Banner-Container">
      <div class="banner-img"></div>
    </div>
  </header>
  <div class="blackoverlay">


    <div class="logincontainer">

      <div class="SideContent">

        <div class="login">
          <div class="InputDiv">
            <form>
              <input type="text" placeholder="UserName">
              <input type="password" placeholder="Password">
              <button> Log In</button>
            </form>
          </div>
        </div>


        <section class="SideBar">
          <h2>
                    SideBar1
         </h2>
          <p>
            Sidebar Information
          </p>
        </section>

        <section class="SideBar">
          <h2>
                    SideBar2
         </h2>
          <p>
            Sidebar Information
          </p>
        </section>


        <section class="SideBar">
          <h2>
                    SideBar3
         </h2>
          <p>
            Sidebar Information
          </p>
        </section>


      </div>

     

        <article class="content">


          <h2 class="BlogTitle">
                        Entry 6 Return from Hiatus, and prototype website is live
                        </h2>

          <footer class="footertwo">

            Post added on October 17, 2016.


          </footer>

          <h3>What I've been doing this past month? </h3>


          <p> It was time for me to move onto Javascript but I was too bored to learn, so I took a break and focused on my art work.
          </p>
          <H3> What I did today </H3>
          <p> After coming back from my break I've learned how to use Github and now I'm able to upload my website using Github Pages so people can see it. This is good because now I can get critiques and advice for my website. </p>


        </article>


        <article class="content">


          <h2 class="BlogTitle">
                        Entry 5
                        </h2>

          <footer class="footertwo">

            Post added on September 20, 2016.


          </footer>

          <H3>Accomplished </H3>


          <p> Practiced gradients and learned how to make a gradient overlay using the image container instead of adding a new container ontop of every image. I achieved this by sending image -1 on z-index (z-index:-1;) putting it behind img-container which
            is naturally set to 1 on z-index(z-index:1;).
            <br></br>
            I feel like there's not a whole lot more for me to learn with CSS anymore, and most of the stuff I don't know I can learn/implement as I go. It may be time for me to move onto Javascript and Jquary because I've come to a point where I'm comfortable with
            css and and it seems as though although I'm getting better with using css everyday I would probably learn more by starting javascript.
            <br></br>
            I still haven't touched Github, I think I need to jump on that as soon as possible.
          </p>


        </article>


        <article class="content">


          <h2 class="BlogTitle">
                        Entry 4
                        </h2>

          <footer class="footertwo">

            Post added on September 18, 2016.


          </footer>

          <H3>Accomplished </H3>


          <p> Managed to resize all my images to 300px in height down from 2000+px, something I had to do otherwise my Archive page would have been unbearably slow. I downloaded InfraView to resize and format all the images and that was easier and faster
            than I thought it would be, but rewriting 400 lines of code was hard labor. Practiced multi hovering, when I hover over one element it also activates another element's hover.
          </p>


        </article>


        <article class="content">


          <h2 class="BlogTitle">
                        Entry 3
                        </h2>

          <footer class="footertwo">

            Post added on September 17, 2016.


          </footer>

          <H3>Accomplished </H3>
          <p>Learned about @keyframes and practiced it making by a animated scrolling banner for later.For example if I wanted to hover image text but also display hover for something else simultaniously I would do .img-text:hover .somethingelse. Practiced
            trying to finish my artwork instead of giving up in rough stages.
          </p>


        </article>


        <article class="content">


          <h2 class="BlogTitle">
                        Entry 2
                        </h2>

          <footer class="footertwo">

            Post added on September 15, 2016.


          </footer>

          <H3>Goals for Today: </H3>
          <p>Find out why transition:0.3s isn't working for my gradient overlay in my new Archive. Fix and find out why there's space at the bottom of the my text overlay. If you scroll over the small space inbetween the bottom of the image and the text,
            the text overlay(hover) will not appear. Learn more about Github. Github is something every web developer needs to know, and I think from understanding Github is used to more accurately record progress on a project. </p>

          <H3>Art and Learning Stategies:</H3>
          <p>After learning CSS so quickly by just making something, I'm thinking how can I apply this to other things I want to be great at faster? How can I get myself to want to finish my artwork for once? I think I suck at art for the most part because
            I never push myself. I get to about 60-80% complete with the picture, but in reality the last 20% is always the hardest, finializing and picking the direction you want to go with your piece, trying not to ruin it, it all takes many hours and
            is a headache because I end up spending too much time just thinking about what I should do instead of doing something. I got 2 ideas I always had an interest for. #1. make a comic book, I've been thinking alot about making my own comic or
            graphic novel in the past fear years, I think it would be fun to tell my own story, problem is I haven't had any ideas for a story. I could probably try to make something simple yet fun, when I try to make stories I make it overly complciated
            and it just becomes boring.When I've tried to write stories I focused too much on abstract details instead of the big concept, the goals, the world they live in. So I'd probably just make a simple fun story I'm interested in, and then add
            details as I go. I could also try writing the story first, but this can take alot of time up when I could have jumped in and started making something already. My first few comics are going to suck, but in the end I'm sure just making anything
            will give me a better idea for something else. #2. Make speed paint videos. Since I was in Highschool I had ideas of making speedpaints with my own unique editing style and music choice. This seems like it would take my art to the next level.
            I don't like the idea of jumping in and doing speed paints at such a novice level though, and I'd also have to take time to learn video editing software. </p>


        </article>


        <article class="content">


          <h2 class="BlogTitle">
                        Entry 1: Archive Page Running Slow
                        </h2>

          <footer class="footertwo">

            Post added on September 14, 2016.


          </footer>

          <p> My original Archive html was running very slowly when I implemented it a week ago being almost unbearable. I figured at the time my Archive was probably slow because it wasn't uploaded to the web. Now I've been thinking about it and what's the
            difference between a website loading material from my computer over a hosted server? I don't think there is a big difference in speed. So I looked into it and found that my images were actually slowing down the website themselves. This is
            because most of my images are huge in their original html form(I didn't bother to resize each image individually), and me using CSS to simply scale down the height of each picture to 200px. The images were all loading in their huge original
            size behind the scenes and css was updating them to shrink down simultaniously. loading multiple really large pixel dense images all at once on the same frame, this wil be hard for your computer to do. If you run the page in just html you'll
            see all the pictures in their original sizes, now try to squish those all into a web frame. </p>

          <H3>The solution: </H3>
          <p> I can do one of 2 things. Either I resize every picture individually to 200px height, this will reduce lag greatly but is very tedious, and I will probably end up losing image quality through resaving on some files. This method is is easier,
            but is tedious because I have to resize every image file seperately, implementing text overlay is more complicated, although I may have to do this method anyway eventually since using image tags are usually implied if it's apart of the main
            content of a website. Option 2 is to put my images in Divs, and set the background-image property to display each images to every individual div, which is also fairly tedious. The advantages of doing it this way is it's alot more fun trying
            a new method instead of simply resizing pictures, I can add text overlay to each image easier, and my images will run faster opposed to using image tags. I went with the div method for now, and although all the original pictures are not upadated
            onto Archive1 yet, if you want to check how the new method runs compared to the original, compare loading times of Archive1(new div method) to Archive2(original). At the end of the day I learned why I really need to stop being lazy and resize
            each picture individually. CSS is style for a website that can't be searched by google, HTML is content that can be searched on google, so my images won't be shown on google if I display them through CSS. </p>

          <H3>Learned:</H3>
          <p>Z-index attribute, brings things forward 1 or backward -1 in the flow. This was great to learn and I used it to fix a problem with position:absolute content overlapping position:fix. I used z-index: 1; to bring my fixed navbar(scrolls with page)
            above everything else inclusing position absolutes. CSS images cannot be searched for using google, that's why they should be prioritized as style. A child cannot override a parent's opacity attribute. I also learned how to use Linear Gradients.

          </p>


        </article>


      


      <footer class="footerone">
        <a>
          <p> copyright &copy; cmonaghan.com

          </p>
        </a>
      </footer>
    </div>
</body>


</html>
              
            
!

CSS

              
                    * {
      margin: 0;
      padding: 0;
      text-decoration: none;
    }
    
    body {
      background-color: #212121;
      font-size: 87.5%;
      font-family: serif;
      background-attachment: fixed;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }
    
    .journal-img {
      background-image:url("http://www.offthegridnews.com/wp-content/uploads/2015/07/cat-and-dog-returnofkingsDOTcom.jpg");
      background-size: cover;
    }
    
    header {
      margin-top: 10%;
    }
    
    header nav ul {
      display: inline-block;
      top: 0;
      font-size: 0;
      padding-bottom: 19px;
      padding-top: 19px;
      border-radius: 5px;
      position: fixed;
      z-index: 1;
    }
    
    header nav ul li {
      display: inline;
      border-radius: 5px;
      padding: inherit;
    }
    
    header nav ul li a {
      background-color: #2c2930;
      color: #B6A8F0;
      padding: inherit;
      font-size: 15px;
      padding-left: 20px;
      padding-right: 20px;
      -webkit-transition: all .5s ease-in-out;
      -moz-transition: all .5s ease-in-out;
      -ms-transition: all .5s ease-in-out;
      -o-transition: all .5s ease-in-out;
      transition: all .5s ease-in-out;
    }
    
    header nav ul li a:hover {
      color: black;
      background-color: #7D70A1;
      background-color: #847d91;
      color: #242033;
      border-radius: 5px;
    }
    
    .active {
      color: #baa8eb;
      background-color: rgba(44, 41, 48, 0.64);
    }
    
    .Banner-Container {
      width: 100%;
      height: 240px;
      overflow: hidden;
      position: relative;
      margin-top: -10%;
      
      z-index: -1;
    }
    
    .banner-img {
      background-image: URL("Images/Thumbnails/2016/9 September/18a..jpeg");
      animation: slide 220s linear infinite;
      width: 3360px;
      height: inherit;
      position: absolute;
    }
    
    @keyframes slide {
      0% {
        background-position: 0px 0%;
      }
      100% {
        background-position: -3360px 0%;
      }
    }
    
    h2 {
      color: #a59f8f;
      text-decoration: none;
      font-size: 25px;
    }
    
    h3 {
      color: #746336;
      text-decoration: none;
      font-size: 22px;
      padding-bottom: 10px;
    }
    
    p {
      color: rgb(130, 126, 139);
      color: rgb(144, 107, 107);
      font-size: 23px;
      margin-bottom: 5px;
    }
    
    p:active {
      font-size: 25px;
      transition: 0.5s;
    }
    
    .SideContent {
      width: 24%;
      margin-right: 2%;
      float: right;
      text-align: center;
      font-size: 0;
      padding-left: 2%;    
      
    }
    
    .SideBar {
      background-color: rgba(64, 44, 64, 0.34);
      border-radius: 5px;
      padding: 3px;
      width: 100%;
      margin-bottom: 3px;
      -webkit-transition: all .5s ease-in-out;
      -moz-transition: all .5s ease-in-out;
      -ms-transition: all .5s ease-in-out;
      -o-transition: all .5s ease-in-out;
      transition: all .5s ease-in-out;
      
    }
    
    .SideBar:hover {
      background-color: rgba(64, 44, 64, 0.66);
    }
    
    .sidebar p {
      -webkit-transition: all .5s ease-in-out;
      -moz-transition: all .5s ease-in-out;
      -ms-transition: all .5s ease-in-out;
      -o-transition: all .5s ease-in-out;
      transition: all .5s ease-in-out;
    }
    
    .SideBar:hover p {
      color: aliceblue;
    }
    
    
    .content {
      
      text-align: center;
      background-color: rgba(44, 41, 48, 0.57);
      border-radius: 5px;
      padding: 3px;
      margin-bottom: 20px;
      -webkit-transition: all .3s ease-in-out;
      -moz-transition: all .3s ease-in-out;
      -ms-transition: all .3s ease-in-out;
      -o-transition: all .3s ease-in-out;
      transition: all .3s ease-in-out;
      word-wrap: normal;
      
    }
    
    .content:hover {
      background: rgba(30, 29, 34, 0.85);
    }
    
    .content:hover p {
      color: rgb(224, 210, 255);
      color: rgb(195, 164, 157);
    }
    
    .BlogTitle {
      font-size: 30px;
      margin-bottom: 20px;
    }
    
    .footertwo {
      color: #827E94;
      font-size: 15px;
      margin-bottom: 20px;
    }
    
    .Timeline {
      display: block;
      margin-top: -10%;
      position: fixed;
      height: 100%;
      width: 100%;
      z-index: -2;
      background-color: rgba(0, 0, 0, 0.8);
    }
    
    .Timeline-Margin {
      padding-left: 2%;
      padding-right: 2%;
    }
    
    .Timeline-Margin h2 {
      font-size: 30px;
      padding-top: 20px;
      color: rgb(222, 222, 222)
    }
    
    .Img-Container {
      display: inline-block;
      overflow: hidden;
      position: relative;
      font-size: 0;
    }
    
    .image {}
    
    .img-text {
      bottom: 0;
      display: block;
      word-wrap: break-word;
      position: absolute;
      width: 100%;
      padding-bottom: 5%;
      background: linear-gradient(rgba(0, 0, 0, 0), rgba(11, 10, 25, 0.54));
      opacity: 0;
      text-align: center;
      -webkit-transition: all .5s ease-in-out;
      -moz-transition: all .5s ease-in-out;
      -ms-transition: all .5s ease-in-out;
      -o-transition: all .5s ease-in-out;
      transition: all .5s ease-in-out;
    }
    
    .img-text2 {
      bottom: 0;
      display: block;
      word-wrap: break-word;
      position: absolute;
      width: 100%;
      padding-bottom: 5%;
      background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.56), rgb(0, 0, 0), black);
      opacity: .1;
      text-align: center;
    }
    
    .Img-Container:hover .img-text2 {
      transition: .5s;
      opacity: 1;
    }
    
    .img-text H2 {
      color: rgb(193, 193, 216);
    }
    
    .img-text p {
      color: rgb(230, 230, 250);
      font-size: 20px;
    }
    
    .Img-Container:hover .img-text {
      transition: .5s;
      opacity: 1;
    }
    
    .Img-Container:hover .image {
      transition: .5s;
      opacity: 1;
    }
    
    .footerone {
      width: 100%;
      display: block;
      bottom: 0;
      clear: both;
    }
    
    .footerone p {
      color: #827E94;
      font-size: 17px;
      text-align: center;
    }
    
    .blackoverlay {
      background: rgba(0, 0, 0, 0.8);
      100%;
    }


              
            
!

JS

              
                
              
            
!
999px

Console