HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Combat Artificer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://getbootstrap.com/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="CapstoneChar.css">
</head>
<ul class="nav nav-tabs navbar-custom navbar-inverse">
<li><a href="https://codepen.io/owldragon/pen/vyNRWv">Home</a></li>
<li><a href="https://codepen.io/owldragon/pen/zorpQb">Traditions</a></li>
<li class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle">Characters <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="https://codepen.io/owldragon/pen/zorNRz">Generalist Incanter</a></li>
<li><a href="https://codepen.io/owldragon/pen/qqbRYo">Dwarven Runecaster</a></li>
<li class="active"><a href="https://codepen.io/owldragon/pen/ObMWwK">Combat Artificer</a></li>
</ul>
</li>
</ul>
<main><br><br>
<h1 class="top">Combat Artificer</h1>
<br>
<div class="summary">This artificer is a mageknight, focused on combat. He has a low caster level, but Alteration magic can increase his size in battle or grant other forms of movement. Presented Here is the artificer at levels 1 and 5.
</div>
<img src="http://img10.deviantart.net/312d/i/2010/098/4/8/great_sword_warrior_fantasy_by_tianyi.jpg" alt="Artificer with sword" class="img-rounded ArtImg">
<br>
<div class="stats ArtStats"><br><br><br>
<p><h2><span class="listing">Human Mageknight (Int based Low Caster, 20 point build)</span></h2>
Str 16, Dex 14, Con 14, Int 14, Wis 12, Cha 8<br />
<span class="listing">Human traits:</span> bonus feat, bonus skills</p>
<br>
<p><h2><span class="listing">Mageknight 1</span></h2>
<span class="listing">BAB:</span> +1<br />
<span class="listing">Melee attack:</span> +4 greataxe (1d12+4, x3)<br />
OR power attack +3 greataxe (1d12+7, x3)<br />
<span class="listing">Ranged attack:</span> +3 longbow (1d8, x3)<br />
<span class="listing">AC:</span> 17 (+5 scale mail, +2 Dex)<br />
<span class="listing">Fort:</span> +4 <span class="listing">Ref:</span> +2 <span class="listing">Will:</span> +3<br />
[+1 vs. magic, spells, spell-like abilities, and sphere effects]<br />
<span class="listing">HP:</span> 13<br />
<span class="listing">Skills (5 points):</span> Acrobatics 1 (+2*), Climb 1 (+3*), Craft (metalworking) 1 (+6), Diplomacy 0 (-1), Knowledge (arcana) 1 (+6), Perception 1 (+2), Spellcraft 1 (+6), Stealth 0 (-2*), Swim 0 (-5*)<br />
*includes -4 armor check penalty (doubled to -8 for Swim)<br />
<span class="listing">Feats:</span> Combat Reflexes, Power Attack<br />
<span class="listing">Special Abilities:</span> Resist Magic +1<br />
<span class="listing">Casting Tradition:</span> Artificer - Focus Casting (artificer's foci), Prepared Caster, Easy Focus<br />
<span class="listing">Caster Level:</span> 0 (1)<br />
<span class="listing">Spell Points:</span> 3<br />
<div class="spheres">Sphere Magic (3 talents):</div>
<ul><li>Alteration (uses metal harness as focus); Elemental Transformation, Size Change<br /></ul>
<span class="listing">Equipment (175 gp):</span> greataxe (20 gp), longbow (75 gp), scale mail (50 gp), pack and misc. equipment (30 gp)</p>
<br>
<br>
<p><h2><span class="listing">Mageknight 5</span></h2>
<div class="attributes">Str to 19 with Belt of Giant Strength</div>
<span class="listing">BAB:</span> +5<br />
<span class="listing">Melee attack:</span> +9 with +1 greatsword (2d6+7, 19-20/x2)<br />
OR power attack +7 with +1 greatsword (2d6+13, 19-20/x2)<br />
<span class="listing">Ranged attack:</span> +8 masterwork composite longbow (Str +4) (1d8+4, x3)<br />
<span class="listing">AC:</span> 21 (+7 from +1 breastplate, +2 Dex, +1 dodge, +1 deflection)<br />
<span class="listing">Fort:</span> +6 <span class="listing">Ref:</span> +3 <span class="listing">Will:</span> +5<br />
[+2 vs. magic, spells, spell-like abilities, and sphere effects; ignore partial affects with a successful Fortitude or Will save]<br />
<span class="listing">HP:</span> 47<br />
<span class="listing">Skills (25 points):</span> Acrobatics 1 (+2*), Climb 1 (+4*), Craft (metalworking) 5 (+10), Diplomacy 0 (-1), Knowledge (arcana) 2 (+7), Perception 5 (+6), Spellcraft 5 (+10), Stealth 5 (+6*), Swim 2 (+1*)<br />
*includes -4 armor check penalty (doubled to -8 for Swim)<br />
<span class="listing">Feats:</span> Combat Reflexes, Power Attack, Extra Mystic Combat, Dodge, Extra Spell Points<br />
<span class="listing">Special Abilities:</span> Resist Magic +2, Stalwart<br />
<div class="spheres">Mystic Combat:</div><ul><li> Penetrating Blow (spend 1 spell point as a swift action to make attacks be touch attacks for 1 round)</li><li> Whirl of Blows (spend 1 spell point as a swift action to gain the benefits of Whirlwind Attack for 2 rounds)</li>
</ul>
<span class="listing">Casting Tradition:</span> Artificer - Focus Casting (artificer's foci), Prepared Caster, Easy Focus<br />
<span class="listing">Caster Level:</span> 2<br />
<span class="listing">Spell Points:</span> 9<br />
<div class="spheres">Sphere Magic (5 talents):</div>
<ul>
<li>Alteration (uses metal harness as focus); Elemental Transformation, Size Change</li>
<li> Life (uses a bracer as focus); Revitalize</li>
</ul>
<span class="listing">Equipment (10,500 gp):</span> Belt of Giant Strength +2 (4,000 gp), Ring of Protection +1 (2,000 gp), +1 greataxe (2,350 gp), masterwork composite longbow (+4 Str) (500 gp), +1 breastplate (1,350 gp), pack and misc. equipment (300 gp)<br />
</p>
</div><br><br>
</main>
<footer>
<img class="logo" src="http://paizo.com/image/product/catalog/PZO/PZOCOMPATIBILITYE_500.jpeg" alt="Pathfinder Compatible logo">Copyright: <a href='http://www.123rf.com/profile_aparagraph'>aparagraph / 123RF Stock Photo</a></footer>
</body>
</html>
.nav {
font-size: 2.55em;
font-family: "Times New Roman", Times, serif;
}
.nav a {
color: rgb(190, 190, 255)
}
.dropdown-menu li {
font-size: 1.5em;
}
main {
width: 80%;
margin-left: auto;
margin-right: auto;
font-family: "Times New Roman", Times, serif;
color: black;
}
.top {
text-align: center;
font-size: 3em;
font-weight: bold;
text-decoration: underline
}
.summary {
display: inline;
float: left;
width: 100%;
font-size: 2.1em;
margin-left: 3%;
margin-bottom: 30px;
}
h2 {text-decoration: underline;
padding-bottom: 0.2em}
.attributes {font-style: italic}
.spheres {text-decoration: underline;
font-size: 1em;
font-weight: bold;
margin-top: 5px;
margin-bottom: 5px;}
img {
float: none;
display: block;
width: 50%;
margin: 0 auto;
}
.stats {
display: block;
font-size: 2.1em;
}
.ArtStats {margin-top: -100px}
.listing {font-weight: bold}
.logo {
display: block;
float: none;
width: 340px;
min-height: 0px;
margin: 0 auto;
margin-top: 80px;
}
body {
background-image: url(http://us.123rf.com/450wm/aparagraph/aparagraph1102/aparagraph110200052/8912028-old-paper-background.jpg);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@media screen and (min-width: 885px) {
/*summary and image side-by-side when large, stacked when small*/
.summary{width: 60%}
img{
display: inline;
float: right;
margin-right: 4%
}
.IncImg {width: 33%}
.DwarvImg {width: 32%}
.ArtImg {width: 28%}
.stats{
width: 100%;
margin-top: 250px;
margin-left: 3%}
}
@media screen and (max-width: 490px) {
/*navbar stacked when small*/
.nav li {
width: 100%;
font-size: 1em;
}
.dropdown-menu li {
font-size: 0.9em;
}
}
Also see: Tab Triggers