Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <html>
  <body>
     <div class="text-box">
      <div class="text-main">
        <p>The illuminated manuscript is an ancient piece in which the text is supplemented with such decoration as initials, borders (marginalia) and miniature illustrations. In the strictest definition, the term refers only to manuscripts decorated with gold or silver; but in both common usage and modern scholarship, the term refers to any decorated or illustrated manuscript from Western traditions. Comparable Far Eastern and Mesoamerican works are described as painted. Islamic manuscripts may be referred to as illuminated, illustrated or painted, though using essentially the same techniques as Western works. </p>
        
        <p>The earliest surviving substantive illuminated manuscripts are from the period 400 to 600, produced in the Kingdom of the Ostrogoths and the Eastern Roman Empire. The significance of these works lies not only in their inherent artistic and historical value, but also in the maintenance of a link of literacy offered by non-illuminated texts. </p>
       </div>
      </div>
  </body>
</html>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Eagle+Lake|UnifrakturMaguntia');

/*---------------------------------------------- 
RESET & CLEARFIX
------------------------------------------------*/
* {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
}

html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual discretionary-ligatures oldstyle-nums;
	-moz-font-feature-settings: "kern", "liga", "dlig", "clig", "calt", "salt", "onum", "swsh";
	-ms-font-feature-settings: "kern", "liga", "dlig", "clig", "calt", "salt", "onum", "swsh";
	-webkit-font-feature-settings: "kern", "liga", "dlig", "clig", "calt", "salt", "onum", "swsh";
	font-feature-settings: "kern", "liga", "dlig", "clig", "calt", "salt", "onum", "swsh";
}

body {
  text-align: left; 
	position: relative;
  min-height: 100%;
  background: #e0e2db;
}
body:before, body:after {
    content: "";
    position: fixed;
    background: RGBA(183, 158, 89, .7);
    left: 0;
    right: 0;
    height: 35px;
    overflow-x: hidden;
    overflow-y: scroll;
    box-sizing: border-box;
    z-index: 10;
}
body:before {
    top: 0;
}
body:after {
    bottom: 0;
}
body {
    border-left: 35px solid RGBA(183, 158, 89, .7);
    border-right: 35px solid RGBA(183, 158, 89, .7);
    padding:1em;
}

.text-box {
  width: 85%;
  margin: 10% auto;
  border: 10px double RGBA(183, 158, 89, 1);
}

.text-main {
  width: 65%;
  margin: 16% auto;
  border: 2px solid RGBA(183, 158, 89, 1);
  border-left: none;
  border-right: none;
  padding-top: 60px;
  padding-bottom: 60px;
}

@media only screen and (max-width: 640px) {
  body:before, body:after {
    height: 15px;
    }
  body {
    border-left: 15px solid #b79e59;
    border-right: 15px solid #b79e59;
    }
  
  .text-main p {
  font-size: 15px !important; 
  line-height: 32px !important;
  }
}


.text-main p {
  font-family: 'Eagle Lake', cursive;
  font-style: normal;
  font-size: 20.5px; 
  line-height: 37.2px;
  letter-spacing: 0.06em;
  text-shadow: 4px 4px 8px darkgray;
  opacity: .9;
	color:#515963; 
	text-align: left;
	margin-top: 20px;
}

.text-main p:first-child {  
  margin-top: 0px;
}


.text-main > p:first-of-type:first-letter {
    font-family: 'UnifrakturMaguntia', cursive;
    font-style: normal !important;
    font-size: 4.4em !important;
    line-height: 1em !important;
    text-transform: capitalize !important;
    text-shadow: 0 0px 1.5px darkgray;
    float: left;
    color: #BBA377;
    background: #00232b;
    border: .04em dotted #BBA374 !important;
    padding: 15px 30px 15px 25px !important;
    margin: 10px 20px 0px 0px !important;
}

@-moz-document url-prefix() {
.text-main > p:first-of-type:first-letter {
    padding: 30px 30px 27.5px 26px !important;
    margin: 10px 18px 0px 0px !important;
 }
}
              
            
!

JS

              
                
              
            
!
999px

Console