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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<META name = "description" content = "We're a budding Game Studio and Community dedicated to creation of Games in a non corporate environment. Join our Community and help on one of our Game Projects today!">

<title>Half Empty Studios - Community Game Design</title>

</head>

<body>

<div class="container">
  <div class="logo"></div>
  <div class="banner"></div>

  <div class="nav">
    <span style="padding:0px 20px 0px 0px;">
      <a href="#" class="toplinks" id="game-link">GAMES</a>
      <ul class="dropdown" id="dd-1" style="top:32px;">
        <li><a href="#">Chemical Cubes</a></li>
        <li><a href="#">Realms</a></li>
        <li><a href="#">Circuit Runner</a></li>
        <li><a href="#">T.U.R.T.L.E.</a></li>
      </ul>
    </span>
    <span style="padding:0px 20px 0px 20px;">
      <a href="#" class="toplinks" id="media-link">MEDIA</a> 
      <ul class="dropdown" id="dd-2" style="left:110px; top:32px;">
        <li><a href="#">Wallpapers</a></li>
        <li><a href="#">Videos</a></li>
        <li><a href="#">Webcomic</a></li>
      </ul>
    </span>
    <span style="padding:0px 20px 0px 20px;">
      <a href="#" class="toplinks" id="demo-link">DEMOS</a>
      <ul class="dropdown" id="dd-3" style="left:214px; top:32px;">
        <li><a href="#">Realms</a></li>
        <li><a href="#">Circuit Runner</a></li>
        <li><a href="#">T.U.R.T.L.E.</a></li>
      </ul>
    </span>
    <span style="padding:0px 20px 0px 20px;">
      <a href="#" title="Store Coming Soon" class="toplinks">STORE</a>
    </span>
    <span style="padding:0px 20px 0px 20px;">
      <a href="#" title="Design Forum" class="toplinks">COMMUNITY</a>
    </span>
  </div>

  <div class="sidebar">
    <div class="nav2">
      <div style="padding:0px 0px 22px 0px;"><a href="#" title="News" class="sidelinks">NEWS</a></div>
      <div style="padding:0px 0px 22px 0px;"><a href="#" title="Mission" class="sidelinks">MISSION</a></div>
      <div style="padding:0px 0px 22px 0px;"><a href="#" title="Contact Us" class="sidelinks">CONTACT</a></div>
      <div style="padding:0px 0px 22px 0px;"><a href="#" title="Development Diary" class="sidelinks">DEV DIARY</a></div>
      <div style="padding:0px 0px 22px 0px;"><a href="#" title="Web Comics" class="sidelinks">COMICS</a></div>
    </div>
  </div>
<!-- end header.php -->

  <div class="newsbox">
    <div style="position:absolute; padding:12px 20px 0px 20px;">




      <div style="position:relative; top:5px;">
        <font size="5" face="fBebasNeue, sans-serif">NEWS</font>
        <hr class="news-hr" /><font size="2">



        <a href="#" title="This is an example news title that would be fetched from the database.">This is an example news title that would be fetched from the database.</a><br /><hr class="news-hr" />
        <a href="#" title="But this is just a jsfiddle, so unfortunately, there isn't a database. :(">But this is just a codepen, so unfortunately, there isn't a database. :(</a><br /><hr class="news-hr" />

        </font>
      </div> 

    </div>

</div> <!-- newsbox -->

  <div class="home-content">

    <div style="position:absolute; padding:2px 20px 12px 20px;"></div>
  </div> <!-- home-content -->

  <div style="position:absolute; left:206px; top:695px; width:722px;">

<!-- end index.php -->

    <div class="crnotice" align="center">
      &copy; <a href="#" title="Half Empty Studios">HALF EMPTY STUDIOS</a>, LLC 2012; ALL RIGHTS RESERVED
    </div>

  </div> <!-- last div of any given page closes only on the footer -->

</div>



</body>
</html>

<!-- end footer.php -->
            
          
!
            
              @font-face {
font-family: fBebasNeue;
src: url('http://www.aimdiab.com/web-design-portfolio/demos/hes/fonts/BebasNeue.ttf'),
	 url('http://www.aimdiab.com/web-design-portfolio/demos/hes/fonts/BebasNeue.eot'), /* IE9+ */
	 url('http://www.aimdiab.com/web-design-portfolio/demos/hes/fonts/BebasNeue.eot?#iefix') format('embedded-opentype'); /* IE6-8+ */
}
body {
	background-color: #000;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	font-family: Lucida Sans Unicode, Lucida Grande, sans-serif;
/*	font-family: fBebasNeue, Arial Black; */
	color: #fff;
	background-image: url("http://www.aimdiab.com/web-design-portfolio/demos/hes/images/grad-bg.png");
	background-position: left top;
	background-repeat: repeat-x;
}
h2 {
	font-weight:normal;
	font-family: fBebasNeue, Arial Black;	
}
p.doublespaced {
	line-height: 1.5;
}
div.container {
	width:960px;
	position:absolute;
	left:50%;
	margin-left:-480px;
	top: 4%;
	background-color: #fff;
}
hr.news-hr {
	color:#787878;
	background-color:#787878;
	padding:0px; 
	height:1px;
	border:0;
}

/* LINKS */
a:link {
	color: #fff;
	text-decoration: none;
	position: relative;
}
a:visited {
	color: #fff;
	text-decoration: none;
}
a:hover {
	color: #CCC;
	text-decoration: none;
}
a:active {
	color: #fff;
	text-decoration: none;
}
a.toplinks:link {
	color: #fff;
	text-decoration: none;
	position: relative;
	-webkit-transition: bottom 0.4s ease-out; 
	-moz-transition: bottom 0.4s ease-out; 
	-o-transition: bottom 0.4s ease-out;
	font-family: fBebasNeue, Arial Black;
}
a.toplinks:visited {
	color: #fff;
	text-decoration: none;
	position: relative;
	font-family: fBebasNeue, Arial Black;
}
a.toplinks:hover {
	color: #CCC;
	text-decoration: none;
	position: relative;
/*	bottom: 8px; */
	font-family: fBebasNeue, Arial Black;
}
a.toplinks:active {
	color: #fff;
	text-decoration: none;
	position: relative;
	font-family: fBebasNeue, Arial Black;
}
a.sidelinks:link {
	color: #fff;
	text-decoration: none;
	position: relative;
	-webkit-transition: top 0.4s ease-out; 
	-moz-transition: top 0.4s ease-out; 
	-o-transition: top 0.4s ease-out;
	font-family: fBebasNeue, Arial Black;
}
a.sidelinks:visited {
	color: #fff;
	text-decoration: none;
	position: relative;
	font-family: fBebasNeue, Arial Black;
}
a.sidelinks:hover {
	color:#CCC;
	text-decoration: none;
	position: relative;
	top: 4px;
	font-family: fBebasNeue, Arial Black;
}
a.sidelinks:active {
	color: #fff;
	text-decoration: none;
	position: relative;
	font-family: fBebasNeue, Arial Black;
}
a.medialinks:link {
	color: #CCC;
	text-decoration: none;
	padding:6px 8px 4px 8px;
	font-family: fBebasNeue, Arial Black;
}
a.medialinks:visited {
	color: #CCC;
	text-decoration: none;
	padding:6px 8px 4px 8px;
	font-family: fBebasNeue, Arial Black;
}
a.medialinks:hover {
	color:#fff;
	text-decoration: none;
	background-color:#000;
	padding:6px 8px 4px 8px;
	font-family: fBebasNeue, Arial Black;
}
a.medialinks:active {
	color: #CCC;
	text-decoration: none;
	padding:6px 8px 4px 8px;
	font-family: fBebasNeue, Arial Black;
}
a.fader:link {
	color: #000;
	text-decoration: none;
	opacity: 0.4;
	filter:alpha(opacity=40);
}
a.fader:visited {
	color: #000;
	text-decoration: none;
	opacity: 0.4;
	filter:alpha(opacity=40);
}
a.fader:hover {
	color:#000;
	text-decoration: none;
	opacity: 1;
	filter:alpha(opacity=100);
}
a.fader:active {
	color: #000;
	text-decoration: none;
	opacity: 0.4;
	filter:alpha(opacity=40);
}
/* END LINKS */

img {
	border: none;
}
img.iconlinks {
	padding: 4px;
}
img.iconlinks:hover {
	padding: 4px;
	background-color:#000;
}
div.logo {
	position:absolute;
	left: 33px;
	top: 64px;
	width: 105px;
	height: 112px;
	background-image: url("http://www.aimdiab.com/web-design-portfolio/demos/hes/images/logo.png");
}
div.banner {
	position:absolute;
	left: 206px;
	top: 11px;
	width: 722px;
	height: 162px;
	background-image: url("http://www.aimdiab.com/web-design-portfolio/demos/hes/images/half_empty_studio_banner.png");
	background-position: left bottom;
}
div.sidebar {
	position:absolute;
	left: 33px;
	top: 199px;
	background-color: #4c4a4a;
	width: 105px;
	height: 232px;	
}
div.newsbox {
	position:absolute;
	left: 206px;
	top: 258px;
	background-color: #4c4a4a;
	width: 540px;
	height: 437px;
}
div.home-content {
	position:absolute;
	left: 783px;
	top: 258px;
	background-color: #4c4a4a;
	width: 130px;
	height: 437px;
}
div.nav {
	position:absolute;
	top: 214px;
	left: 372px;
	font-size: 1em;
}
div.nav2 {
	position:absolute;
	top: 17px;
	left: -11px;
	font-size: 1em;	
}
div.crnotice {
	background: #000;
	width: 722px;
	height: 24px;
	padding: 12px 0px 6px 0px;
	font-size:0.7em;
	font-family: fBebasNeue, Arial Black;	
}
div.gamebox1 {
	position:absolute;
	left: 206px;
	top: 258px;
	background-color: #4c4a4a;
	width: 128px;
	height: 364px;	
}
div.gamebox2 {
	position:absolute;
	left: 364px;
	top: 258px;
	background-color: #4c4a4a;
	width: 128px;
	height: 364px;	
}
div.gamebox3 {
	position:absolute;
	left: 522px;
	top: 258px;
	background-color: #4c4a4a;
	width: 128px;
	height: 364px;	
}
div.gamebox4 {
	position:absolute;
	left: 680px;
	top: 258px;
	background-color: #4c4a4a;
	width: 128px;
	height: 364px;	
}
div.fullpage {
	position:absolute;
	left: 206px;
	top: 258px;
	background-color: #4c4a4a;
	width: 722px;	
}

/* Pagination */
.paginate {
	padding: 6px;
}
.current {
	padding: 6px;
	background-color: #000;
}
.inactive {
	padding: 6px;
}
/* End Pagination */

img.wallpaper {
	border: 1px solid #171717;
	padding: 6px;
	background-color: #fff;
}
/* comment styling */

/* end comment styling */
ul.dropdown {
	list-style-type: none;
	padding: 4px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	margin: 0px;
	background-color: #666;
	font-size:12px;
	position:absolute;
	top: 16px;
	z-index: 100;	
}
            
          
!
            
              $(document).ready(function() {
		$("#dd-1, #dd-2, #dd-3").hide();
		/* Game menu item dropdown */
		$("#game-link").mouseenter(
		function() {
			$("#dd-2, #dd-3").hide();
			$("#dd-1").fadeIn();
		});
		$("#dd-1").mouseleave(
		function() {
			$("#dd-1").fadeOut();
		});
		/* Media menu item dropdown */
		$("#media-link").mouseenter(
		function() {
			$("#dd-1, #dd-3").hide();
			$("#dd-2").fadeIn();
		});
		$("#dd-2").mouseleave(
		function() {
			$("#dd-2").fadeOut();
		});
		/* Demos menu item dropdown */
		$("#demo-link").mouseenter(
		function() {
			$("#dd-1, #dd-2").hide();
			$("#dd-3").fadeIn();
		});
		$("#dd-3").mouseleave(
		function() {
			$("#dd-3").fadeOut();
		});
});

            
          
!
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