css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<!doctype html>

<html lang="en">
<head>
    <title>My Webpage</title>
    <link
         rel="stylesheet"
          href="style.css">
    <meta chareset="UTF-8">
</head>
<body>
    
    <div class="logo">
        <img src="http://placehold.it/100x100/ff0000/ffffff?text=Logo">
            </div>
            <nav>
                <ul
                   
     <nav class="nav-horizontal">
        <ul class="links">
            <li>
                        <a href="HTML-1.html">Home</a>
                    </li>
    <li>
                        <a href="HTML-2.html">Work</a>
                    </li>
    <li>
                        <a href="HTML-3.html">About</a>
                    </li>
    <li>
                        <a href="HTML-4.html">Contact</a>
                    </li>
    </li>
        </ul>
    </nav>
    
    <div
    class="wrapper">
        <h1>About</h1>
            <p class="desc">I am Design Designer studying at London South bank University, this Portfolio displays the work I have produced during the terms of the first and second semester of University.</p>
         
            
   
        
            </div>
            <nav> 
</body>
</html>

            
          
!
            
              html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body { background-color: #909CAD; }
#bg { position: fixed; top: 0; left: 0; }
.bgwidth { width: 100%; }
.bgheight { height: 100%; }

.wrapper {
    width:1120px;
    margin: 0 auto;
}

img {
    
}

.links{
  display: flex;
}

.logo {
    display: flex;
    justify-content: center;
    padding: 3em;
}

.logo img {
   width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    width: 70%;
    height: 3em;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

 nav, ul, li, a {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: verdana, sans-serif;
}

.courses{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.course{
  width: 32%;
  background: #DDDDDD;
  margin-bottom: 20px;
  display: flex;
  border-radius: 10px 40px 10px 40px;
  padding: 10px ;
  box-shadow: 5px 5px 4px black;
}
h2{
  margin-left: 20px;
}

.nav-horizontal li {
    width: 120px; /* Width of link */
    float: left; /*Line up the links horizontally*/
    margin-right: 10px; /*Spacing between links*/
}

.nav-horizontal a {
    color: white; /*The text color of the link*/
    display: block; /*This is needed so that the link expands to the width and height of its parent*/
    text-align: center;
    background-color: grey; /* The background color of the link */
    padding: 8px 0; /*Padding top and bottom is 8px*/
    border-radius: 8px; /*Creates rounded corners on the links*/
}

.nav-horizontal a:hover {
    background-color: black;
    /*When you move the mouses over a link the background becomes black*/
}


/*This is needed to fix a side effect of floating an element*/

@import url(https://fonts.googleapis.com/css?family=Roboto:300);

html {
  height: 100%;
  width: 100%;
  background: url(http://img.wallpaperstock.net:81/blurred-placebo-wallpapers_34011_1920x1080.jpg) no-repeat center;
  background-size: cover;
  font-family: 'Roboto', sans-serif;
}

.metro {
  width: 880px;
  margin: 0 auto;
}

.pull-left {
  float: left;
}

.pull-right {
  float: right;
}

.sm {
  position: relative;
  width: 150px;
  height: 150px;
  background: #111;
  margin: 5px;
  overflow: hidden;
}

.md {
  position: relative;
  width: 300px;
  height: 150px;
  background: #111;
  margin: 5px;
  overflow: hidden;
}

.lg {
  position: relative;
  width: 400px;
  height: 310px;
  background: #111;
  margin: 5px;
  overflow: hidden;
}

.seeallmd {
  width: 100px;
  height: 150px;
  background: #fff;
  position: absolute;
  right: -100px;
  transition: all 1s;
  z-index: 100;
}

.seeallmd h1 {
  font-size: 6em;
  text-align: center;
  margin-top: 10px;
}

.seeallsm {
  width: 150px;
  height: 50px;
  background: #fff;
  position: absolute;
  bottom: -50px;
  transition: all 1s;
  z-index: 100;
}

.seeallsm h1 {
  font-size: 3em;
  text-align: center;
  margin-top: -10px;
}

.seealllg {
  width: 400px;
  height: 100px;
  background: #fff;
  position: absolute;
  top: -100px;
  transition: all 1s;
  z-index: 100;
}

.seealllg h1 {
  font-size: 6em;
  text-align: center;
  margin-top: -20px;
}

.content-tatoo {
  position: relative;
  left: 0;
  height: 150px;
  width: 300px;
  background: url(http://hqscreen.com/wallpapers/m/53/tattoos_men_fingers_blurred_background_m52522.jpg) no-repeat center;
  background-size: cover;
  transition: all 1s;
  z-index: 50;
}

.content-cars {
  position: relative;
  left: 0;
  height: 150px;
  width: 300px;
  background: url(http://hqdesktop.net/wallpapers/m/13/children_macro_desks_izh_moskvich_blurred_background_m12855.jpg) no-repeat center;
  background-size: cover;
  transition: all 1s;
  z-index: 50;
}

.content-water {
  position: relative;
  top: 0;
  height: 150px;
  width: 150px;
  background: url(http://hqscreen.com/wallpapers/m/11/water_dark_waves_macro_blurred_background_sea_m10417.jpg) no-repeat center;
  background-size: cover;
  transition: all 1s;
  z-index: 50;
}

.content-flower {
  position: relative;
  top: 0;
  height: 150px;
  width: 150px;
  background: url(http://best-wallpaper.net/wallpaper/s/1209/Chamomile-close-up-blurred-background_s.jpg) no-repeat center;
  background-size: cover;
  transition: all 1s;
  z-index: 50;
}

.content-fox {
  position: relative;
  top: 0;
  height: 310px;
  width: 400px;
  background: url(http://hqscreen.com/wallpapers/m/67/animals_blurred_background_foxes_snow_m66899.jpg) no-repeat center;
  background-size: cover;
  transition: all 1s;
  z-index: 50;
}


.cars:hover .content-cars, .tatoo:hover .content-tatoo {
  left: -100px;
}

.cars:hover .seeallmd, .tatoo:hover .seeallmd{
  right: 0;
}

.water:hover .content-water, .flower:hover .content-flower {
  top: -50px;
}

.water:hover .seeallsm, .flower:hover .seeallsm {
  bottom: 0;
}

.fox:hover .content-fox {
  top: 100px;
}

.fox:hover .seealllg {
  top: 0;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console