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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <!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="keywords" content="down the alley and up the stairs, exeter, city centre, hair salon, hairdressing, hair cutting, stylist, mens, womens, gents, ladies, colouring, cutting, perming, waving, blow dry, foils"/>
<title>Down the Alley and up the Stairs</title>

<link href="assets/css/myCSS.css"; "rel="stylesheet" type="text/css" />

<style type="text/css">


body,td,th {
  font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
}
body {
	background-color: #660066;
    background-image:url(assets/images/hair dressing work (jo) 035_copy.jpg);
	background-size: 100% auto;
	background-image: url(assets/images/background_flowers.jpg);
}
body,td,th {
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	color: #FFF;
}

</style>
</head>

<body>

<div>
<table width="960px" border="0" cellpadding="0" cellspacing="0">
<tr style="position:fixed;top:0;">
  <tr>
    <td>&nbsp; Salon 01392 499491 <Align Caption:"left"></td>
    <td>&nbsp; VISIT us in Exeter City Centre<Align Caption:"Right"></td>
  </tr>
  <tr>
    <td>&nbsp; </td>
    <td>&nbsp;Check out our Facebook page!</td>
  </tr>
</table>
</div>




<div class="container">
  <div class="sub header"><img src="assets/images/topimage.png" width="960px" height="450px"/>  
</div>
  <div id="navcontainer">
  <ul id="navlist">
<li><a href="http://www.downthealleyandupthestairs.com/index">Home</a></li>
<li><a href="http://www.downthealleyandupthestairs.com/About_Us">About Us</a></li>
<li><a href="http://www.downthealleyandupthestairs.com/Services">Services</a></li>
<li><a href="http://www.downthealleyandupthestairs.com/Price_List">Price List</a></li>
<li><a href="http://www.downthealleyandupthestairs.com/Find_Us">Find Us</a></li>
</ul>
</div>
<br />

<div class="content">
<p>Down the Alley and up the Stairs is a well established ladies and gents hair dressing salon located just off <a href="#" title="Directions to Salon on Google Maps">Musgrove Row (Queen Street), Exeter.</a><br />
We specialise in all types of hair design from simple cut and blow-drys, re-styles to hair colouring and styling for special occasions. With experience and skill we can give expert advice and create hair that is individual and versatile.<br />
We are committed to providing the ultimate salon experience, paying great attention to customer service. A  small chic salon where the cut and colour comes first.<br />
Our wide range of haircare products include Tigi, L'Oréal, Goldwell, Voilà and GHD to keep your hair salon perfect until your next visit.
</p>
</div>



<div class="footer">
    <p> <a href="http://www.downthealleyandupthestairs.com/about us" title="About Us">About Us</a> | <a href="http://www.downthealleyandupthestairs.com/services" title="Services">Services</a> | <a href="http://www.downthealleyandupthestairs.com/price list" title="Price List">Price List</a> | <a href="http://www.downthealleyandupthestairs.com/find us" title="Find Us">Find Us</a></p>
  <!-- end .footer --></div>
<!-- end .container --></div><br />
<p class="footerCopy">&copy;2012  ablazedesign.co.uk | All Rights Reserved. Designed by Joanna Broadhurst of <a href="https://www.ablazedesign.co.uk" title="Ablaze Design">Ablaze Design</a></p>
 
</body>
</html>


              
            
!

CSS

              
                @charset "UTF-8";
body {
  background-color: #FFFFFF;
	margin: 0;
	padding: 0;
	color: #999;
	color-profile: 333333;
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
	font-size: 14pt;
	line-height: 1.4;
	background-image: url(../images/background_flowers.jpg);
	background:repeat;
}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
	padding: 0;
	margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
	margin-top: 0;	 /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
	padding-right: 15px;
	padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
	border: 5px;
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
	border: none;
}

/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
	color: #FFFFFF;
	text-decoration: none; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
}
a.external:link {
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	color: #333;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
	text-decoration: underline;
}
a.external:link {
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	color: #333;
}
a.external:visited {
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	color: #333;
	text-decoration: underline;
}
a.external:hover {
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	color: #333;
	text-decoration: underline;
}
a.external:active {
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	color: #333;
	text-decoration: underline;
}

/* ~~ This fixed width container surrounds all other divs ~~ */
.container {
	width: 960px;
	background-color: #FFFFFF;
	margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
	color: #333333;
	font: #333333;
	border: 10px;
	border-top-color: #FFF;
	border-right-color: #FFF;
	border-bottom-color: #FFF;
	border-left-color: #FFF;
}

/* ~~ The header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo. ~~ */
.header {
	background-color: #FFFFFF;
}

/* ~~ These are the columns for the layout. ~~ 

1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.

2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.

3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.

4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and they'll render in reverse order. There's no need to move the divs around in the HTML source.

*/
.sidebar1 {
	float: left;
	width: 250px;
	background-color: #CC3399;
	padding-bottom: 10px;
	font-size: 14px;
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
	background-size: contain;
	background-position: absolute;
	border: 1px;
	border-top-color: #FFF;
	border-right-color: #FFF;
	border-bottom-color: #FFF;
	border-left-color: #FFF;
	position: relative;
}
.content {
	width: 920px;
	float: left;
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #FFF;
	padding: 20px;
	margin-top: 4px;
	background-color: #660066;
	font-weight: lighter;
}
.sidebar2 {
	float: right;
	width: 180px;
	background-color: #93CC37;
	padding: 10px 0;
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	margin-top: 4px;
	border: 1px;
}

/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol { 
	padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
}

/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
ul.nav {
	list-style: none; /* this removes the list marker */
	margin-bottom: 15px;
	font-weight: bold;
	color: #FFF;
}
.form {
}
ul.nav li {
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
	color: #FFF;	
}
ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
	display: block; /* this gives the anchor block properties so it fills out the whole LI that contains it so that the entire area reacts to a mouse click. */
	width: 230px;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 15px;
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
}
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
	background-color: #333333;
	color: #FFF;
	border-top-color: #FFF;
	border-right-color: #FFF;
	border-bottom-color: #FFF;
	border-left-color: #FFF;
	border-top-width: 2px;
	border-right-width: 2px;
	border-bottom-width: 2px;
	border-left-width: 2px;
	background-position: left;
	outline-color: #FFF;
	font-size: 100%;
	font-family: "Century Gothic"Verdana, Arial, Helvetica, sans-serif;
}

/* ~~ The footer styles ~~ */
.footer {
	padding: 10px 0;
	background-color: #990099;
	position: relative;/* this gives IE6 hasLayout to properly clear */
	clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
	text-align: center;
	font-size: 16px;
	line-height: normal;
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
	color: #FFF;
	font-style: normal;
}
.footerCopy {
	padding: 0px;
	position: relative;/* this gives IE6 hasLayout to properly clear */
	clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
	text-align: center;
	font-size: 14px;
	line-height: normal;
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
	color: #FFF;
	font-style: italic;
}

/* ~~ Miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
	float: left;
	margin-right: 8px;
}
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the .container) if the .footer is removed or taken out of the .container */
	clear:both;
	height:0;
	font-size: 1px;
	line-height: 0px;
}
.container .sidebar1 .nav .menu_item a {
	font-size: 14px;
	border-top-width: 4px;
	border-right-width: 0px;
	border-bottom-width: 4px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #FFFFFF;
	border-right-color: #FFFFFF;
	border-bottom-color: #FFFFFF;
	border-left-color: #FFFFFF;
}
.container .sidebar2 .nav .menu_item a {
	font-size: 14px;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 4px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #FFFFFF;
	border-right-color: #FFFFFF;
	border-bottom-color: #FFFFFF;
	border-left-color: #FFFFFF;
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
	color: #333;
	background-position: right;
}
menu {
	font-family: "Century Gothic Verdana", Arial, Helvetica, sans-serif;
	color: #666;
	background-color: #FFF;
	text-align: center;
	display: inline;
	list-style-type: none;
	font: #666;
}

#navcontainer ul
{
	padding-left: 0;
	margin-left: 0;
	background-color: #962499;
	color: White;
	float: left;
	width: 100%;
	font-family: "Century Gothic" Verdana, Arial, Helvetica, sans-serif;
	margin-top: 4px;
}

#navcontainer ul li { display: inline; }

#navcontainer ul li a
{
	background-color: #962499;
	color: White;
	text-decoration: none;
	float: left;
	padding-top: 0.2em;
	padding-right: 1em;
	padding-bottom: 0.2em;
	padding-left: 1em;
	border-right-width: 2px;
	border-right-style: solid;
	border-right-color: #fff;
	background-position: center center;
}

#navcontainer ul li a:hover
{
	background-color: #660066;
	color: #fff;
	text-decoration: underline;
}
/* CSS */
.container_row {
	position: absolute;
	left: 881px;
	top: 52px;
	text-align: right;
}

.layer1 {
	position: absolute;
	z-index: 1;
	left: 0px;
	top: -18px;
	width: 169px;
	height: 33px;
	background-position: left top;
}

.layer2 {
	position: absolute;
	z-index: 2;
	width: 303px;
	left: -53px;
	top: -31px;
}
.container {width:960px;
      margin:0 auto 0 auto;
      padding:5px;
      border:10px solid #ffffff;
      background:#ffffff; }

.table {	  
	  width:960px;
	  border:0;
	  cellpadding:0;
	  cellspacing:0;
	  position:fixed;
}

              
            
!

JS

              
                
              
            
!
999px
We're stronger <u>nited than <div>ided.

Console