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

              
                <div id="mainpageboxes">		

		<div class="container">		

		<div class="four columns module-side module-side-left alpha">		

		<figure class="effect-oscar">

						<div class="imgf"style="background:url(http://pyramisaegypt.com/wp-content/uploads/fboxes1.jpg);"></div>

						<figcaption>

							<h2 style=""><a href="/authentic-egyptian-hospitality/">Authentic Egyptian Hospitality</a></span></h2>

							<p>Egyptians are known for their warm welcome and exceptional attitude; at Pyramisa Hotels, we 

guarantee Authentic Egyptian Hospitality done right.</p>

							

						</figcaption>			

					</figure>		</div>		

		<div class="four columns module-side module-side-left alpha">		

		<figure class="effect-oscar">

						<div class="imgf"style="background:url(http://pyramisaegypt.com/wp-content/uploads/fboxes2.jpg);"></div>

						<figcaption>

							<h2><a href="/money-value-guarantee/">Money Value Guarantee</a></span></h2>

							<p>We believe that everyone is entitled to a great vacation; we have gone through great lengths to 

guarantee exceptional service at an exceptional price!

</p>

							

						</figcaption>			

					</figure>		</div>		

		<div class="four columns module-side module-side-left alpha">		

		<figure class="effect-oscar">

						<div class="imgf"style="background:url(http://pyramisaegypt.com/wp-content/uploads/fboxes3.jpg);"></div>

						<figcaption>

							<h2><a href="/our-awards-certificates/">Our Awards & Certificates</a></span></h2>

							<p>We know hospitality and we got the awards as a testament for delivering our promises.</p>

							

						</figcaption>			

					</figure>		</div>		

		<div class="four columns module-side module-side-left alpha">		

		<figure class="effect-oscar">

						<div class="imgf" style="background:url(http://pyramisaegypt.com/wp-content/uploads/fboxes4.jpg);"></div>

						<figcaption>

							<h2 style=""><a href="/about-pyramisa/">Our rich history</a></span></h2>

							<p>Pyramisa began as a family business in the 80’s, click here to learn more about how it grew to become the leading Egyptian 5-star hotel chain.</p>

							

						</figcaption>			

					</figure>		

		</div>		

		</div>		

		</div>



              
            
!

CSS

              
                figure.effect-oscar {
	background: -webkit-linear-gradient(45deg, #22682a 0%, #9b4a1b 40%, #3a342a 100%);
	background: rgba(0,0,0,1);/*linear-gradient(45deg, #22682a 0%,#9b4a1b 40%,#3a342a 100%);*/
	position:relative;
	overflow:hidden;
	min-height:285px;	margin-bottom: 0;
}
figure.effect-oscar  p {    font-size: 12pt;    line-height: 1.2;}
figure.effect-oscar .imgf {
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
	position: absolute;
	z-index: 1;
	width:100%; 
	height:100%; 
	background-size: cover !important; 
	background-position:center center !important;
}

figure.effect-oscar figcaption {
	padding: 2em;
	background-color: rgba(0,0,0,0);
	-webkit-transition: background-color 0.35s;
	transition: background-color 0.35s;
	position: relative;
	z-index: 3;
}

figure.effect-oscar figcaption::before {
	position: absolute;
	top: 20px;
	right: 20px;
	bottom: 20px;
	left: 20px;
	border: 1px solid #fff;
	content: '';
}

figure.effect-oscar h2 {
	margin: 0px 0 10px 0;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: translate3d(0,0,20px);
	transform: translate3d(0,0,20px);
	color:#f1f1f1;
	text-shadow: 0 0 2px #000;
        font-family: Good Times; !important;
	font-size: 24px;
	line-height: 1;
}

figure.effect-oscar figcaption::before,
figure.effect-oscar p {
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(0);
	transform: scale(0);
	color: #f1f1f1;
}

figure.effect-oscar:hover h2 {
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
	color: #fff;
}

figure.effect-oscar:hover figcaption::before,
figure.effect-oscar:hover p {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

@media only screen and (min-width : 1290px) {
	.container { 
		width:1224px; 
	}

	.container .column,
	.container .columns { 
		margin-left:10px; 
		margin-right: 10px;  
	}

	.column.alpha, .columns.alpha { 
		margin-left:0; 
		margin-right:10px; 
	}

	.column.omega, .columns.omega { 
		margin-right:0; 
		margin-left:10px; 
	}

	.alpha.omega { 
		margin-left:0; 
		margin-right:0; 
	}

	.container .one.column,
	.container .one.columns { 
		width:56px; 
	}

	.container .two.columns { 
		width:132px; 
	}

	.container .three.columns { 
		width:208px; 
	}

	.container .four.columns { 
		width:284px; 
	}

	.container .five.columns { 
		width:360px; 
	}

	.container .six.columns { 
		width:436px; 
	}

	.container .seven.columns { 
		width:512px; 
	}

	.container .eight.columns { 
		width:588px; 
	}

	.container .nine.columns { 
		width:664px; 
	}

	.container .ten.columns { 
		width:740px; 
	}

	.container .eleven.columns { 
		width:816px; 
	}

	.container .twelve.columns { 
		width:892px; 
	}

	.container .thirteen.columns { 
		width:968px; 
                height:40px;
	}

	.container .fourteen.columns { 
		width:1044px; 
	}

	.container .fifteen.columns { 
		width:1140px; 
	}

	.container .sixteen.columns { 
		width:1224px; 
	}

	.container .one-third.column { 
		width:390px; 
	}

	.container .two-thirds.column { 
		width:785px; 
	}
  
#mainpageboxes .column.alpha,#mainpageboxes .columns.alpha {
  margin-left: 11px;
  margin-right: 11px;
}
  
.width50 h3, .width50in h3 {font-family: Good times; font-size: em;}
.boldheadings b {font-weight:600; !important;}
.formleft {display:inline; float:left; margin:0 5px 0 0px;}
.form90 input, .form90 select {width: 90%}
.formtxtarea textarea{width: 377px; height: 75px;}
.alignright p {text-align:right;}.width33 {width: 35%; float:left;}.width63 {width: 65%; float:left;}
@media only screen and (max-width: 768px) {.width50 {  float: left;  margin-left: 0%;  width: 100%;}.width50in {  float: left;  margin-left: 2%;  width: 100%;}figure.effect-oscar {   margin-bottom: 15px;  min-height:150px;}figure.effect-oscar  p {    font-size: 10pt;    line-height: 1.2;}#mainpageboxes .column.alpha, #mainpageboxes .columns.alpha {  margin-left: 0px;  margin-right: 0px;}}
@media (max-width: 480px) {#copyright-wrap {    padding: 25px 0px 15px;  }}
  
  
  
  




              
            
!

JS

              
                
              
            
!
999px
Keep friends close and formatters closer.

Console