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.
<nav>
<ul>
<li><a href="#">Start</a></li>
<li><a href="#">Templates</a></li>
<li><a href="#">Featured</a></li>
<li><a href="#">Blog</a></li>
</ul>
</nav>
<header>
<h1><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/title-1.png" alt=""/></h1>
<h2>デザインに心躍る彩りを</h2>
<h4>したがって、「デザイン」は、1つまたは複数の作成されたもののカテゴリカルな抽象化を指す実質的なものです。</h4>
</header>
<main>
<div>Image</div>
<div>
<h2>A Little about me</h2>
<p>設計とは、オブジェクト、システム、または測定可能な人間の相互作用を構築するための計画または規則を作成することです(建築設計図、設計図、ビジネスプロセス、回路図、縫製パターンなど)。設計には、さまざまな分野でさまざまな意味合いがあります(以下の設計分野を参照)。場合によっては、オブジェクトの直接構築(陶器、エンジニアリング、管理、コーディング、グラフィックデザインなど)もデザイン思考を使用すると見なされます。</p>
</br>
<p>多くの分野のデザイナーが、アマチュアであれプロであれ、単独であれチームであれ、デザインをどのように作成するかについては、かなりの意見の相違があります。JhonとPaulは、どちらもデザイナーであり、「デザインプロセスを記述する方法はたくさんある」と主張し、「2つの基本的かつ根本的に異なる方法」について議論しました。一般的なビューは、「合理的なモデル」、「技術的な問題解決」、「理由中心の視点」と呼ばれています。別のビューは「Reflection-in-Action」、「Evolutionary Design」、「co-evolution」、「The Action-Centric Perspective」と呼ばれています</p>
</br>
<p>設計とは、オブジェクト、システム、または測定可能な人間の相互作用を構築するための計画または規則を作成することです(建築設計図、設計図、ビジネスプロセス、回路図、縫製パターンなど)。設計には、さまざまな分野でさまざまな意味合いがあります(以下の設計分野を参照)。場合によっては、オブジェクトの直接構築(陶器、エンジニアリング、管理、コーディング、グラフィックデザインなど)もデザイン思考を使用すると見なされます。</p>
</div>
<section>
<div>
<h3><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/Services.png" alt=""/></h3>
</div>
<div>
<div><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/icon-1.png" alt=""/></div>
<h3>Null sit âmet</h3>
<p>特定の環境で、プリミティブコンポーネントのセットを使用して、制約の対象となる一連の要件を満たす目標を達成することを目的とした、エージェントによって明示されるオブジェクトの仕様。</p>
</div>
<div>
<div><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/icon-2.png" alt=""/></div>
<h3>Dis imperdiet est</h3>
<p>デザインの別の定義は、誰かが独自の期待を達成するためのロードマップまたは戦略的アプローチです。仕様、計画、パラメータ、コスト、アクティビティ、プロセス、および方法と対象を定義します</p>
</div>
</section>
<h3><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/Portfolio.png" alt=""/></h3>
<div>
<p>Image</p>
<div>
<p>Image</p>
<p>Image</p>
</div>
<p>Image</p>
<p>Image</p>
<p>Image</p>
<p>Image</p>
<p>Image</p>
</div>
<article>
<h3><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/Blog.png" alt=""/></h3>
<div>
<div>
<div><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/p-12.jpg" alt=""/></div>
<h5>The Rational Model</h5>
<p>Rational Modelは、アメリカの科学者であるハーバートA.サイモン[14]によって独自に開発されました。</p>
</div>
<div>
<div><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/p-13.jpg" alt=""/></div>
<h5>The Rational Model</h5>
<p>Rational Modelは、アメリカの科学者であるハーバートA.サイモン[14]によって独自に開発されました。</p>
</div>
<div>
<div><img src="https://tatsuya-lab.com/wp-content/uploads/2020/03/p-14.jpg" alt=""/></div>
<h5>The Rational Model</h5>
<p>Rational Modelは、アメリカの科学者であるハーバートA.サイモン[14]によって独自に開発されました。</p>
</div>
</div>
</article>
</main>
<footer>
<h6>Copyright (C) 2020 Wizard. All Rights Reserved.</h6>
</footer>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-feature-settings: "palt";
}
body, html {
width: 100%;
height: 100%;
font-family: Tahoma, Geneva, "sans-serif";
}
p {
font-size: 14px;
line-height: 175%;
}
header {
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-1-1.jpg);
background-size: cover;
background-position: center top;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
header h2{
font-size: 35px;
color: white;
font-weight: normal;
}
header h4 {
font-size: 12px;
line-height: 175%;
font-weight: normal;
color: white;
width: 300px;
padding-bottom: 100px;
}
header h1 img{
max-width: 100%;
height: auto;
}
/*ナビゲーション*/
nav ul {
list-style-type: none;
display: flex;
flex-wrap: wrap;
background-color: #313131;
justify-content: center;
}
nav li {
width: calc(100% / 2);
text-align: center;
}
nav a {
font-size: 14px;
color: white;
display: block;
text-decoration: none;
padding: 18px 30px;
}
nav a:hover {
background-color: white;
color: #313131;
}
main h2 {
font-size: 36px;
font-weight: normal;
margin-bottom: 20px;
}
main > div:nth-of-type(1) {
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-2-1.jpg);
background-position: right top;
background-size: cover;
height: 612px;
color: transparent;
}
main > div:nth-of-type(2) {
padding: 50px;
}
main > div:nth-of-type(3) {
width: 100%;
max-height: 819px;
display: flex;
flex-direction: column;
flex-wrap: wrap;
color: transparent;
}
main > div:nth-of-type(3) > p:nth-of-type(1) {
width: 44.44%;
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-4-1.jpg);
height: 303px;
background-position: right top;
background-size: cover;
}
main > div:nth-of-type(3) > p:nth-of-type(2) {
width: 44.44%;
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-7.jpg);
height: 267px;
background-size: cover;
}
main > div:nth-of-type(3) > p:nth-of-type(3) {
width: 33.33%;
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-8.jpg);
height: 552px;
background-size: cover;
background-position: right top;
}
main > div:nth-of-type(3) > p:nth-of-type(4) {
width: 33.33%;
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-9.jpg);
height: 267px;
background-size: cover;
}
main > div:nth-of-type(3) > p:nth-of-type(5) {
width: 22.22%;
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-10.jpg);
height: 304px;
background-size: cover;
background-position: center top;
}
main > div:nth-of-type(3) > p:nth-of-type(6) {
width: 22.22%;
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-11.jpg);
height: 515px;
background-size: cover;
background-position: right top;
}
main > div:nth-of-type(3) > div {
width: 44.44%;
display: flex;
}
main > div:nth-of-type(3) > div > p:nth-of-type(1) {
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-5.jpg);
height: 249px;
width: 50%;
background-size: cover;
}
main > div:nth-of-type(3) > div > p:nth-of-type(2) {
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-6.jpg);
height: 249px;
width: 50%;
background-size: cover;
}
section {
display: flex;
flex-direction: column;
color: white;
}
section > div {
padding: 50px 50px;
width: 100%;
}
section > div:nth-of-type(1) {
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-3-1.jpg);
background-size: cover;
height: 758px;
display: flex;
justify-content: center;
align-items: center;
}
section div:nth-of-type(2) {
background-color: #313131;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
section div:nth-of-type(3) {
background-color: #0078AC;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
section div div, section div h3 {
padding-bottom: 20px;
}
article {
width: 100%;
height: 738px;
background-image: url(https://tatsuya-lab.com/wp-content/uploads/2020/03/p-15.jpg);
background-size: cover;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
article > h3 {
padding-bottom: 60px;
}
article > div {
display: flex;
justify-content: center;
}
article > div > div {
width: 248px;
background-color: white;
height: 405px;
text-align: left;
margin-right: 30px;
}
article > div > div:last-of-type {
margin: 0;
}
article > div > div > h5, article > div > div > p {
padding: 0 30px;
}
article > div > div > h5 {
font-size: 18px;
font-weight: normal;
padding-top: 40px;
padding-bottom: 10px;
}
footer {
width: 100%;
padding: 30px 0;
text-align: center;
}
footer h6 {
font-weight: normal;
font-size: 12px;
}
main > div {
width: 100%;
}
article {
height: auto;
padding: 60px 0;
}
article > div {
display: flex;
flex-direction: column;
align-items: center;
}
article > div > div {
margin-right: 0;
margin-bottom: 30px;
}
/*幅768px以上に適用されるCSS(タブレットサイズ以上・幅990px以上にも適用される)*/
@media screen and (min-width:768px) {
main h2 {
font-size: 28px;
}
main {
display: flex;
flex-wrap: wrap;
max-width: 1024px;
margin: 0 auto;
}
main > div {
width: 50%;
}
main > h3 {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 165px;
background-color: #313131;
}
main > div:nth-of-type(2) {
padding: 30px 0 0 30px;
}
section {
flex-wrap: wrap;
max-height: 758px;
}
section > div {
width: calc(100% / 3);
}
section div:nth-of-type(2) {
width: calc(100% / 3 * 2);
height: 379px;
}
section div:nth-of-type(3) {
width: calc(100% / 3 * 2);
height: 379px;
}
article > div {
flex-direction: row;
}
article > div > div {
margin-bottom: 0;
}
article > div > div:first-of-type {
margin-right: 30px;
}
article > div > div:last-of-type {
margin-left: 30px;
}
article > div > div > h5 {
font-size: 14px;
}
article div img {
width: 100%;
height: auto;
}
}
/*幅990px以上に適用されるCSS(PCサイズ以上・幅768px以上のCSSが干渉する)*/
@media screen and (min-width:990px) {
/*ナビゲーション*/
nav ul {
flex-wrap: nowrap;
}
nav li {
width: auto;
}
section {
flex-direction: row;
flex-wrap: nowrap;
max-height: 758px;
}
section > div {
width: calc(100% / 3);
}
section div:nth-of-type(2) {
width: calc(100% / 3);
height: auto;
}
section div:nth-of-type(3) {
width: calc(100% / 3);
height: auto;
}
}
Also see: Tab Triggers