<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>たねっぱ！ &#187; css</title>
	<atom:link href="https://taneppa.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://taneppa.net</link>
	<description>コツコツあつめるWeb作りのためのたね　たねっぱ！Web系情報ブログ　Webのお役立ちネタ配信中！</description>
	<lastBuildDate>Tue, 09 May 2023 00:02:06 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>vertical-alignを比較してみた</title>
		<link>https://taneppa.net/vertical_align/</link>
		<comments>https://taneppa.net/vertical_align/#comments</comments>
		<pubDate>Tue, 12 May 2020 04:07:09 +0000</pubDate>
		<dc:creator>futappa_staff</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7472</guid>
		<description><![CDATA[vertical-alignについて、まとめました。なぜか効かなくて困っている方、違いがわからない方は ご覧ください！]]></description>
				<content:encoded><![CDATA[
	<div id="Rurippa">

		<h3>目次</h3>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item01">vertical-alignを比較してみた</a></li>
			<li><a href="#item10">まとめ</a></li>
		</ul>





		<div id="item00" class="spaceCont"></div>
		<h2>はじめに</h2>
<p>vertical-alignを使っていますか？垂直方向の位置を揃えたりと 便利なプロパティですが、色々な値を持っているので それらを比較しようと思います！</p>


<h3>比較方法</h3>
<p>pタグ（ブロック要素）の中にspanで囲った文字（インライン要素）と、画像（インライン要素）を入れています。それらがどのように配置されるかをみてみましょう。</p>
<p><a href="https://taneppa.net/wp-content/uploads/2019/07/vertical_align_sample1.jpg"><img src="https://taneppa.net/wp-content/uploads/2019/07/vertical_align_sample1-500x172.jpg" alt="vertical_align_sample" width="500" height="172" class="alignnone size-medium wp-image-7537" /></a></p>

<p>※pタグの行間はline-height: 1.5;です。<br />※vertical-alignはブロック要素には効きません。<br />インライン要素と、テーブルセルのどちらかでないと効きませんのでお気をつけください。</p>




		<div id="item01" class="spaceCont"></div>
<h2>vertical-alignを比較してみた</h2>
		<h3>baseline（初期値）</h3>
	<p>親要素のベースラインに揃えます。何も指定がなければ、これがデフォルトになっています。</p>


	<p class="sample style_baseline">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>

	<h3>top</h3>
	<p>行の高さの上端に揃えます。</p>
	<p class="sample style_top">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>

	<h3>middle</h3>
	<p>行の高さの中央に揃えます。</p>
	<p class="sample style_middle">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>

	<h3>bottom</h3>
	<p>行の高さの下端に揃えます。</p>
	<p class="sample style_bottom">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>

	<h3>text-top</h3>
	<p>親要素のテキストの上端に揃えます。</p>
	<p class="sample style_text-top">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>

	<h3>text-bottom</h3>
	<p>親要素のテキストの下端に揃えます。</p>
	<p class="sample style_text-bottom">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>


	<h3>数値（20px）</h3>
	<p>親要素のベースラインを基準に、プラスの数字なら上へ、マイナスなら下へいきます。</p>
	<p class="sample style_20px">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>


	<h3>数値（-40%）</h3>
	<p>先ほどと同じように、親要素のベースラインを基準に、プラスの数字なら上へ、マイナスなら下へいきます。</p>
	<p class="sample style_-40p">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>



	<h3>super</h3>
	<p>親要素を基準に、上付き文字の位置になります。</p>
	<p class="sample style_super">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>

	<h3>sub</h3>
	<p>親要素を基準に、下付き文字の位置になります。</p>
	<p class="sample style_sub">あ<span class="style01">い</span><span class="style02">うえお</span><img src="https://taneppa.net/wp-content/uploads/2019/07/futappa_ruri.jpg" alt="futappa_ruri" width="25" height="25" class="alignnone size-full wp-image-7476" /></p>









		<div id="item10" class="spaceCont"></div>
		<h2>まとめ</h2>

		<p>いかがでしたか？<br />なんとなくで使っていた方も多い？と思いますが、少しでも理解が深まり、気づきがあれば幸いです♪</p>


<h3>参考サイト</h3>
<ul>
	<li><a href="https://developer.mozilla.org/ja/docs/Web/CSS/vertical-align" target="_blank">vertical-align &#8211; CSS: カスケーディングスタイルシート | MDN</a></li>
	<li><a href="http://www.htmq.com/style/vertical-align.shtml" target="_blank">vertical-align－スタイルシートリファレンス</a></li>
	<li><a href="https://cssreference.io/property/vertical-align/" target="_blank">vertical-align &#8211; CSS Reference
</a></li>
	<li><a href="https://taneppa.net/?p=7472&#038;preview=true" target="_blank">大きい文字と小さい文字が混在する行で、縦方向の揃え方を指定する方法 &#8211; スタイルシートTipsふぁくとりー</a></li>
</ul>




	</div>

	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}

			/* pタグ */
		#Rurippa .sample{
		  font-size: 40px;
		  background-color: #ccc;
					  line-height: 1.5;
					}



		#Rurippa span{
		    font-size: 14px;
		  background-color: pink;
		  line-height: 1;
		}
		/* 大文字 */
		#Rurippa .style01{
		  font-size: 25px;
		  background-color: #fff;

		}
		#Rurippa .style_baseline img,#Rurippa .style_baseline span{vertical-align: baseline;}
		#Rurippa .style_top img,#Rurippa .style_top span{vertical-align: top;}
		#Rurippa .style_middle img,#Rurippa .style_middle span{vertical-align: middle;}
		#Rurippa .style_bottom img,#Rurippa .style_bottom span{vertical-align: bottom;}
		#Rurippa .style_text-top img,#Rurippa .style_text-top span{vertical-align: text-top;}
		#Rurippa .style_text-bottom img,#Rurippa .style_text-bottom span{vertical-align: text-bottom;}
		#Rurippa .style_super img,#Rurippa .style_super span{vertical-align: super;}
		#Rurippa .style_sub img,#Rurippa .style_sub span{vertical-align: sub;}
		#Rurippa .style_20px img,#Rurippa .style_20px span{vertical-align: 20px;}
		#Rurippa .style_-40p img,#Rurippa .style_-40p span{vertical-align: -40%;}






		#Rurippa.btnCommon{text-decoration: none;}


	</style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/vertical_align/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>枠線に画像を使う方法</title>
		<link>https://taneppa.net/border_image_css01/</link>
		<comments>https://taneppa.net/border_image_css01/#comments</comments>
		<pubDate>Thu, 13 Feb 2020 00:49:48 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7888</guid>
		<description><![CDATA[縁に画像を使ったレイアウトにする方法を、２パターン紹介します！文字数の増減もOKです(^^)]]></description>
				<content:encoded><![CDATA[


	<div id="Rurippa">


		<h3>目次</h3>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item01">backgroundプロパティを使う方法</a></li>
			<li><a href="#item02">border-imageプロパティを使う方法</a></li>
			<li><a href="#item10">まとめ</a></li>
		</ul>


		<div id="item00" class="spaceCont"></div>
		<h2>はじめに</h2>
		<p>
			<a href="https://taneppa.net/wp-content/uploads/2019/08/border_image_css01.jpg"><img src="https://taneppa.net/wp-content/uploads/2019/08/border_image_css01-500x262.jpg" alt="border_image_css01" width="500" height="262" class="alignnone size-medium wp-image-7903" /></a>
		</p>
		<p>上記のように、枠に画像を使ったレイアウトにしたいときの方法を２パターン紹介します。<br />今回使用するパーツはこちら。リピート表示できるようにスライスしています。</p>
		<p><img src="http://taneppa.net/wp-content/uploads/2018/09/bg_pattern_green01.jpg" alt=""></p>


		<div id="item01" class="spaceCont"></div>
		<h2>backgroundプロパティを使う方法</h2>

		<p>backgroundを使って、画像をリピート表示します（緑の部分）。その上に、白いボックスを置くことで、見本通りの表示になります。これなら文字数の増減にも対応しています。</p>

		<p><a href="https://taneppa.net/wp-content/uploads/2019/08/borderimg01.jpg"><img src="https://taneppa.net/wp-content/uploads/2019/08/borderimg01-500x137.jpg" alt="borderimg01" width="500" height="137" class="alignnone size-medium wp-image-7906" /></a></p>



		<h3>サンプル</h3>
		<div class="wrap">
			<p class="txtBox">
				吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。吾輩はここで始めて人間というものを見た。
			</p>
		</div>

		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;wrap&quot;&gt;
			&lt;p class=&quot;txtBox&quot;&gt;
				吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。吾輩はここで始めて人間というものを見た。
			&lt;/p&gt;
		&lt;/div&gt;
		</pre>

		<pre class="brush: xml; title: ; notranslate">
		.wrap{
			width: 200px;
			padding: 10px;/* 枠線の幅 */
			background-image: url(画像のパス);
			background-repeat: repeat;
		}

		.txtBox{
			padding: 10px;
			background-color: rgb(255,255,255,1);
			font-size: 12px;
		}
		</pre>





		<div id="item02" class="spaceCont"></div>
		<h2>border-imageプロパティを使う方法</h2>
		<p>IE10など 一部非対応のブラウザもありますが、border-imageプロパティでも実装ます（<a href="https://caniuse.com/#search=border-image" target="_blank">対応ブラウザはこちら</a>）。※今記事では、border-imageの詳しい説明は省きます。</p>


		<h3>サンプル</h3>
		<div class="sample01">
			吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。吾輩はここで始めて人間というものを見た。
		</div>

		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample01&quot;&gt;
			吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。吾輩はここで始めて人間というものを見た。
		&lt;/div&gt;

		</pre>

		<pre class="brush: xml; title: ; notranslate">
		.sample01{
			width: 200px;
			padding: 10px;
			border: 10px solid #96d1a9;
			border-image:url(画像のパス) 15 round;
		}

		</pre>





		<div id="item10" class="spaceCont"></div>
		<h2>まとめ</h2>
		<p>うまくできましたか？<br />今回のように見た目は同じでも、やり方が複数あることが多いので状況に合わせてやってみてくださいね。</p>

		<h3>参考サイト</h3>
		<ul>
			<li><a href="https://developer.mozilla.org/ja/docs/Web/CSS/border-image" target="_blank">border-image &#8211; CSS: カスケーディングスタイルシート</a></li>
		</ul>





	</div>




	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}

		#Rurippa .wrap {
			width: 200px;
			padding: 10px;
			background-image: url(http://taneppa.net/wp-content/uploads/2018/09/bg_pattern_green01.jpg);
			background-repeat: repeat;

			margin: 0;
		}

		#Rurippa .txtBox {
			padding: 10px;
			background-color: rgb(255, 255, 255, 1);
			font-size: 12px;

			margin: 0;
		}

		#Rurippa .sample01 {
			width: 200px;
			padding: 10px;
			border-style: solid;
			border-width: 10px;
      border-color: #96d1a9;
			border-image-source: url(http://taneppa.net/wp-content/uploads/2018/09/bg_pattern_green01.jpg);
			border-image-slice: 15;
			border-image-width: 1;
			border-image-outset: 0;
			border-image-repeat: round;
			background-color: #fff;
		}
	</style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/border_image_css01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>コピペで使える box-shadowの使用例９パターン</title>
		<link>https://taneppa.net/boxshadow_sample/</link>
		<comments>https://taneppa.net/boxshadow_sample/#comments</comments>
		<pubDate>Thu, 30 Jan 2020 03:49:36 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7835</guid>
		<description><![CDATA[シャドウ（box-shadow）の使用例を紹介します。コピペして使用できます。]]></description>
				<content:encoded><![CDATA[


	<div id="Rurippa">

		<h3>目次</h3>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item01">右下に影をつける</a></li>
			<li><a href="#item02">ボックスの外側全体に影をつける</a></li>
			<li><a href="#item03">左上の内側に影をつける</a></li>
			<li><a href="#item04">右下の内側に影をつける</a></li>
			<li><a href="#item05">ボックスの内側全体に影をつける</a></li>
			<li><a href="#item06">左下が浮いている風の影をつける</a></li>
			<li><a href="#item07">右下が浮いている風の影をつける</a></li>
			<li><a href="#item08">両端が浮いた風の影をつける</a></li>
			<li><a href="#item09">右下にハッキリした影をつける</a></li>
			<li><a href="#item10">まとめ</a></li>
		</ul>







		<div id="item00" class="spaceCont"></div>
		<h2>はじめに</h2>
		<p>使用例としてbox-shadowを使って、ボックスに影をつけてみました。コピペでも使えますので、参考にしてみてください♪</p>

		<h3>共通のCSSはこちら（白い四角の部分）</h3>
			<pre class="brush: xml; title: ; notranslate">
			div{
				position: relative;
				width: 200px;
				height: 100px;
				background-color: #fff;
			}
			</pre>




		<h2>サンプル</h2>
		<div id="item01" class="spaceCont"></div>


		<h3>右下に影をつける</h3>

		<div class="sampleWrap"><div class="sample01"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample01&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample01{
		  box-shadow: 5px 5px 5px rgba(0,0,0,.2);
		}
		</pre>






<div id="item02" class="spaceCont"></div>
		<h3>ボックスの外側全体に影をつける</h3>

		<div class="sampleWrap"><div class="sample02"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample02&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample02{
		  box-shadow: 0 0 10px rgba(0,0,0,.3);
		}
		</pre>



<div id="item03" class="spaceCont"></div>
		<h3>左上の内側に影をつける</h3>

		<div class="sampleWrap"><div class="sample03"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample03&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample03{
		  box-shadow: 5px 5px 5px rgba(0,0,0,.2) inset;
		}
		</pre>



<div id="item04" class="spaceCont"></div>

		<h3>右下の内側に影をつける</h3>

		<div class="sampleWrap"><div class="sample04"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample04&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample04{
		  box-shadow: -5px -5px 5px rgba(0,0,0,.2) inset;
		}
		</pre>



<div id="item05" class="spaceCont"></div>
		<h3>ボックスの内側全体に影をつける</h3>

		<div class="sampleWrap"><div class="sample05"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample05&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample05{
		  box-shadow: 0 0 5px 5px rgba(0,0,0,.2) inset;
		}
		</pre>



<div id="item06" class="spaceCont"></div>
		<h3>左下が浮いている風の影をつける</h3>

		<div class="sampleWrap"><div class="sample06"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample06&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample06{
			position: relative;
			width: 200px;
			height: 100px;
			background-color: #fff;
		}

		.sample06::before{
			content:&quot;&quot;;
			position: absolute;
			z-index: -1;
			bottom: 10px;
			display: block;
			width: 50%;
			height: 50%;
			box-shadow: 0 10px 5px rgba(0,0,0,.3);
		}

		.sample06::before{
			left: 5px;
			transform:rotate(-3deg);
		}
		</pre>



<div id="item07" class="spaceCont"></div>
		<h3>右下が浮いている風の影をつける</h3>

		<div class="sampleWrap"><div class="sample07"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample07&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample07{
			position: relative;
			width: 200px;
			height: 100px;
			background-color: #fff;
		}

		.sample07::after{
			content:&quot;&quot;;
			position: absolute;
			z-index: -1;
			bottom: 10px;
			display: block;
			width: 50%;
			height: 50%;
			box-shadow: 0 10px 5px rgba(0,0,0,.3);
		}

		.sample07::after{
			right: 5px;
			transform:rotate(3deg);
		}
		</pre>



<div id="item08" class="spaceCont"></div>
		<h3>両端が浮いた風の影をつける</h3>

		<div class="sampleWrap"><div class="sample08"></div></div>
		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample08&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample08{
			position: relative;
			width: 200px;
			height: 100px;
			background-color: #fff;
		}

		.sample08::before,
		.sample08::after{
			content:&quot;&quot;;
			position: absolute;
			z-index: -1;
			bottom: 10px;
			display: block;
			width: 50%;
			height: 50%;
			box-shadow: 0 10px 5px rgba(0,0,0,.3);
		}

		.sample08::before{
			left: 5px;
			transform:rotate(-3deg);
		}

		.sample08::after{
			right: 5px;
			transform:rotate(3deg);
		}
		</pre>






		<div id="item09" class="spaceCont"></div>
				<h3>右下にハッキリした影をつける</h3>

				<div class="sampleWrap"><div class="sample09"></div></div>
				<pre class="brush: xml; title: ; notranslate">
				&lt;div class=&quot;sample09&quot;&gt;&lt;/div&gt;
				</pre>
				<pre class="brush: xml; title: ; notranslate">
				.sample09{
				  box-shadow: 0 0 5px 5px rgba(0,0,0,.2) inset;
				}
				</pre>








		<div id="item10" class="spaceCont"></div>
		<h2>まとめ</h2>
		<p>いかがでしたか？<br />色々なニュアンスを表現できますので、ぜひ使ってみてくださいね。また、ジェネレーター（<a href="https://css-generator.net/box-shadow/" target="
			">サイトはこちら</a>）などを使ってみるのもオススメです。</p>







	</div>

	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}
		.sampleWrap {
 position: relative;
    z-index: -2;
    max-width: 205px;
    background-color: #eee;
    padding: 20px;
    border: 1px solid rgba(0,0,0,.2);

		}
		.sampleWrap div{
			position: relative;
		 	width: 200px;
		 	height: 100px;
		 	background-color: #fff;
}
.commonStyle{
	position: relative;
	width: 200px;
	height: 100px;
	background-color: #fff;
}
/****************/

#Rurippa .sample01{
  box-shadow: 5px 5px 5px rgba(0,0,0,.2);
}
#Rurippa .sample02{
  box-shadow: 0 0 10px rgba(0,0,0,.3);
}

#Rurippa .sample03{
  box-shadow: 5px 5px 5px rgba(0,0,0,.2) inset;
}


#Rurippa .sample04{
  box-shadow: -5px -5px 5px rgba(0,0,0,.2) inset;
}

#Rurippa .sample04{
  box-shadow: -5px -5px 5px rgba(0,0,0,.2) inset;
}

#Rurippa .sample05{
  box-shadow: 0 0 5px 5px rgba(0,0,0,.2) inset;
}

/**********/
#Rurippa .sample06{
	position: relative;
	width: 200px;
	height: 100px;
	background-color: #fff;
}

#Rurippa .sample06::before{
	content:"";
	position: absolute;
	z-index: -1;
	bottom: 10px;
	display: block;
	width: 50%;
	height: 50%;
	box-shadow: 0 10px 5px rgba(0,0,0,.3);
}

#Rurippa .sample06::before{
	left: 5px;
	transform:rotate(-3deg);
}


/**********/
#Rurippa .sample07{
	position: relative;
	width: 200px;
	height: 100px;
	background-color: #fff;
}

#Rurippa .sample07::after{
	content:"";
	position: absolute;
	z-index: -1;
	bottom: 10px;
	display: block;
	width: 50%;
	height: 50%;
	box-shadow: 0 10px 5px rgba(0,0,0,.3);
}

#Rurippa .sample07::after{
	right: 5px;
	transform:rotate(3deg);
}
/**********/
#Rurippa .sample08{
	position: relative;
	width: 200px;
	height: 100px;
	background-color: #fff;
}

#Rurippa .sample08::before,
#Rurippa .sample08::after{
	content:"";
	position: absolute;
	z-index: -1;
	bottom: 10px;
	display: block;
	width: 50%;
	height: 50%;
	box-shadow: 0 10px 5px rgba(0,0,0,.3);
}

#Rurippa .sample08::before{
	left: 5px;
	transform:rotate(-3deg);
}

#Rurippa .sample08::after{
	right: 5px;
	transform:rotate(3deg);
}
/**********/
#Rurippa .sample09{
  box-shadow: 10px 10px 0 rgba(0,0,0,.2);
}






	</style>








]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/boxshadow_sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>box-shadowを使った影のつけ方（少し浮いて見える表現）</title>
		<link>https://taneppa.net/shadow_paper/</link>
		<comments>https://taneppa.net/shadow_paper/#comments</comments>
		<pubDate>Mon, 06 Jan 2020 06:35:28 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7675</guid>
		<description><![CDATA[紙がめくれたり、少し浮いたように見える影（シャドウ）の表現をCSSで実装します。 CSS3のbox-shadowを使います。]]></description>
				<content:encoded><![CDATA[	<div id="Rurippa">

		<h3>目次</h3>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item02">解説</a></li>
			<li><a href="#item10">まとめ</a></li>
		</ul>







		<div id="item00" class="spaceCont"></div>
		<h2>はじめに</h2>
		<p>紙がめくれたり、少し浮いたように見える影（シャドウ）の表現をbox-shadowを使って実装します。<br />解説もありますので、よければご覧ください。</p>





		<div id="item01" class="spaceCont"></div>
		<h2>完成はこちら</h2>



		<div class="sampleWrap">
			<div class="sample01"></div>
		</div>

		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample01&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		/*　白い四角 */
		.sample01{
			position: relative;
			width: 200px;
			height: 100px;
			background-color: #fff;
		}

		/* 左右の影 */
		.sample01::before,
		.sample01::after{
			content:&quot;&quot;;
			position: absolute;
			z-index: -1;/*影を下の層に持っていく*/
			bottom: 10px;
			display: block;
			width: 50%;
			height: 50%;
			box-shadow: 0 10px 5px #999;
		}

		/*　左側の影 */
		.sample01::before{
			left: 5px;
			transform:rotate(-3deg);
		}

		/*　右側の影 */
		.sample01::after{
			right: 5px;
			transform:rotate(3deg);
		}
		</pre>





		<div id="item02" class="spaceCont"></div>
		<h2>解説</h2>
		<p>影の部分をどう作るの？ということなんですが、左下の影と 右下との影はそれぞれbeforeとafterで実装できます。</p>


		<p>わかりやすくするために、右下の影（after）だけを表示して、z-indexを調整してみました。<br />あの白い四角の下には、transform:rotate(-3deg);で少し傾けた  影付きの四角があります。これを左右に配置することで実装しています。</p>

		<p>＜右下の影だけ表示＞<br />afterがz-index: 1;の場合</p>
		<div class="sampleWrap">
			<div class="sample01 style01"></div>
		</div>
		<p>afterがz-index: -1;の場合</p>
		<div class="sampleWrap">
			<div class="sample01 style02"></div>
		</div>








		<div id="item10" class="spaceCont"></div>
		<h2>まとめ</h2>
		<p>一見どうやって作るの？と思うものも、分解して１つずつ考えていくと、理解できることも多いと思います。今回のは、そういう中の１つかな？と思います。ソースコードみて頂いてもわかりやすいと思いますので、難しいと感じた方は見てみてくださいね。</p>





	</div>

	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}
		#Rurippa .sampleWrap{
			position: relative;
			    z-index: -2;
			max-width: 205px;
			background-color: #eee;
			padding: 20px;
			border: 1px solid #999;
		}
		#Rurippa .sample01{
			position: relative;
			width: 200px;
			height: 100px;
			background-color: #fff;
		}
		#Rurippa .sample01::before,
		#Rurippa .sample01::after{
			content:"";
			position: absolute;
			z-index: -1;
			bottom: 10px;
			display: block;
			width: 50%;
			height: 50%;
			box-shadow: 0 10px 5px #999;
		}
		div::before{
			background-color: #eee;
			left: 5px;
			transform:rotate(-3deg);

		}
		div::after{
			background-color: yellow;
			right: 5px;
			transform:rotate(3deg);
		}

		#Rurippa .sample01.style01::after{
		z-index: 1;
		}
		#Rurippa .sample01.style01::before,
		#Rurippa .sample01.style02::before{
			display: none;
		}

		#Rurippa .sample01.style02::after{
		z-index: -1;
		}

	</style>








]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/shadow_paper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>box-shadowを使った複数の線のひき方</title>
		<link>https://taneppa.net/box_shadow_border/</link>
		<comments>https://taneppa.net/box_shadow_border/#comments</comments>
		<pubDate>Wed, 23 Oct 2019 02:38:09 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7728</guid>
		<description><![CDATA[CSS「box-shadow」を使った複数の線のひき方を紹介します。]]></description>
				<content:encoded><![CDATA[


	<div id="Rurippa">

		<h3>目次</h3>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item02">複数の線のひき方</a></li>
			<li><a href="#item10">まとめ</a></li>
		</ul>







		<div id="item00" class="spaceCont"></div>
		<h2>はじめに</h2>
		<p>box-shadowを使って、線を引くことができます。さらに、１つのbox-shadowで複数指定することもできますので、ご紹介します。</p>





		<div id="item01" class="spaceCont"></div>
		<h2>複数の線のひき方</h2>

<p>サンプルを紹介する前に、box-shadowの使い方を簡単におさらいします。<br /><strong>box-shadow: たて方向 よこ方向 ぼかし 広がり #カラーコード</strong>の順に指定します。では、早速サンプルをみてみましょう。</p>

<h3>サンプル１</h3>
		<div class="sample01"></div>
		<p>ボックの内側（insetを使う）に、外側の線からから順に指定しています。「<strong>,（カンマ）</strong>」で区切ることで、複数の指定ができます。</p>

		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample01&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample01 {
			width: 80px;
			height: 80px;
			box-shadow: 0px 0 0 10px #A3CEC9 inset,
			0px 0 0 20px #60c5ba inset,
			0px 0 0 30px #cff09e inset;
		}
		</pre>



<h3>サンプル２</h3>
		<div class="sample02"></div>
		<p>３色ラインを線状にひいています。box-shadowのたて方向の部分の数値だけ調整して、水平方向に伸びるようになっています。注意点として、一色目だけborderで指定しています。</p>


		<pre class="brush: xml; title: ; notranslate">
		&lt;div class=&quot;sample02&quot;&gt;&lt;/div&gt;
		</pre>
		<pre class="brush: xml; title: ; notranslate">
		.sample02 {
			border-bottom: solid 10px #cff09e;
			/*  ↓box-shadow: 0px 10px 0 0 #カラーコードの略  */
			box-shadow: 0px 10px #60c5ba,
			0px 20px #A3CEC9;
		}
		</pre>











		<div id="item10" class="spaceCont"></div>
		<h2>まとめ</h2>
		<p>いかがでしたか？<br />変わった使い方ですが、こういうこともできるんだなと知識の引き出しに入れてもらえたら幸いです。</p>

		<h3>参考サイト</h3>
		<p><a href="http://www.htmq.com/css3/box-shadow.shtml" target="_blank">box-shadow－CSS3リファレンス</a></p>





	</div>

	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}
		#Rurippa .sample01 {
			width: 80px;
			height: 80px;
			box-shadow: 0px 0 0 10px #A3CEC9 inset,
			0px 0 0 20px #60c5ba inset,
			0px 0 0 30px #cff09e inset;
			margin: 50px auto;
		}
		#Rurippa .style01{
			border-radius: 50%;
		}
		#Rurippa .sample02 {
			border-bottom: solid 10px #cff09e;
			box-shadow: 0px 10px #60c5ba,
            0px 20px #A3CEC9;
						margin: 0 auto 50px;
		}




	</style>








]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/box_shadow_border/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ヘッダーでよく見るレイアウトの作り方（Flexboxとmargin:autoを使用）</title>
		<link>https://taneppa.net/flex_header_auto/</link>
		<comments>https://taneppa.net/flex_header_auto/#comments</comments>
		<pubDate>Mon, 07 Oct 2019 02:10:27 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=6911</guid>
		<description><![CDATA[左右に離れたレイアウトを作ります。Flexboxを使えば簡単にできるので、ぜひお試しください。]]></description>
				<content:encoded><![CDATA[<div id="Rurippa">






	<h2>目次</h2>
	<ul>
		<li><a href="#item00">今回作るもの</a></li>
		<li><a href="#item01">実装方法</a></li>
		<li><a href="#item02">今回のポイント＆まとめ</a></li>
	</ul>



	<div id="item00" class="spaceCont"></div>
	<h2>今回作るもの</h2>
<p><a href="https://taneppa.net/wp-content/uploads/2019/07/bnr_nav_flex.jpg"><img src="https://taneppa.net/wp-content/uploads/2019/07/bnr_nav_flex-500x262.jpg" alt="bnr_nav_flex" width="500" height="262" class="alignnone size-medium wp-image-6940" /></a></p>

	<p>画像のような よく見るレイアウトです。片方にロゴがあり、反対側にメニューが並んでいます。この左右に別れたレイアウトを作る方法も複数ありますが、今回は<strong>Flexboxを使い HTMLもシンプル</strong>になるように作ります。</p>





<div id="item01" class="spaceCont"></div>
	<h2>実装方法</h2>
	<p>ベースになるHTML・CSSはこちらです！</p>
	<pre class="brush: xml; title: ; notranslate">
	&lt;header&gt;
		&lt;div&gt;Logo&lt;/div&gt;
		&lt;div&gt;Menu01&lt;/div&gt;
		&lt;div&gt;Menu02&lt;/div&gt;
		&lt;div&gt;Menu03&lt;/div&gt;
	&lt;/header&gt;
	</pre>

	<pre class="brush: xml; title: ; notranslate">
	header div{
		display:flex;

		/*  下記は装飾部分です。なくてもOK  */
		padding: 10px;
		border: 1px solid #333;
		background: pink;
	}
	</pre>

	<ul class="menuList01">
		<li>Logo</li>
		<li>Menu01</li>
		<li>Menu02</li>
		<li>Menu03</li>
	</ul>



	<h3>はじめに</h3>
	<p>まず、headerタグにFlexを使って、divを横並びにします。</p>
	<pre class="brush: xml; title: ; notranslate">
	header{
		display:flex;
	}
	</pre>
	<ul class="menuList01 style01">
		<li>Logo</li>
		<li>Menu01</li>
		<li>Menu02</li>
		<li>Menu03</li>
	</ul>




	<h3>その２</h3>
	<p>１番目のdiv（Logo）に対して、「<strong>margin-right:auto;</strong>」をかけます。
	<br />すると、左右に離れました。もう、ほぼ完成です‥！</p>
	<pre class="brush: xml; title: ; notranslate">
	header div:first-child{
		margin-right:auto;
	}
	</pre>
	<ul class="menuList01 style01 style02">
		<li>Logo</li>
		<li>Menu01</li>
		<li>Menu02</li>
		<li>Menu03</li>
	</ul>



	<h3>その３</h3>
	<p>必要に応じて 余白など微調整して完成です。</p>
	<pre class="brush: xml; title: ; notranslate">
	header div{
		margin-left: 10px;
	}
	header div:first-child{
		margin-left: 0;
	}
	</pre>
	<ul class="menuList01 style01 style02 style03">
		<li>Logo</li>
		<li>Menu01</li>
		<li>Menu02</li>
		<li>Menu03</li>
	</ul>










	<h3>完成ソースコード</h3>
	<pre class="brush: xml; title: ; notranslate">
	&lt;header&gt;
		&lt;div&gt;Logo&lt;/div&gt;
		&lt;div&gt;Menu01&lt;/div&gt;
		&lt;div&gt;Menu02&lt;/div&gt;
		&lt;div&gt;Menu03&lt;/div&gt;
	&lt;/header&gt;
	</pre>
	<pre class="brush: xml; title: ; notranslate">
		header{
			display:flex;
		}

		header div{
			display:flex;

			/*  ▼装飾など  */
			margin-left: 10px;
			padding: 10px;
			border: 1px solid #333;
			background: pink;
		}

		header div:first-child{
			margin-right:auto;

			/*  ▼装飾など  */
			margin-left: 0;
		}
	</pre>
	<p></p>

	<div id="item02" class="spaceCont"></div>
	<h2>今回のポイント＆まとめ</h2>

	<p>コーディングの流れをみていきましたが、ポイントは「<strong>marginに対してautoをかける</strong>」ことです！
	<br />中央寄せでよくみる「<strong>margin: 0 auto;</strong>」これと同じです！これが、Flexboxにもかけれるというのが一番大事だと思います。</p>
<p>また、このやり方が一番良いかは 状況によると思いますが、よければ試してみてくださいね。
<br />もしピンと来てない方は、こちらの記事も合わせて読んでみてください♪</p>
<h3>参考記事</h3>
<ul>
	<li><a href="../margin_auto/">【CSS】marginのauto、こんな使い方って知ってる？</a></li>
</ul>





</div>




<style>
	#Rurippa .spaceCont {
		padding-top: 30px;
		margin-top: -30px;
	}
	#Rurippa .menuList01 li{
		background-image: none;
		padding: 0;
	}
	#Rurippa ul.style01{
		display:flex;
	}

	#Rurippa ul.menuList01 li{
		display:flex;

		padding: 10px;
		border: 1px solid #333;/*  わかりやすくするためのボーダー  */
		background-color: pink;/*  背景色  */
	}

	#Rurippa ul.style02 li:first-child{
margin-right:auto;
}

#Rurippa ul.style03 li{
margin-left: 10px;
}
#Rurippa ul.style03 li:first-child{
margin-left: 0;
}

</style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/flex_header_auto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一番かんたんなテーブルのレスポンシブ対応</title>
		<link>https://taneppa.net/table_responsive/</link>
		<comments>https://taneppa.net/table_responsive/#comments</comments>
		<pubDate>Thu, 03 Oct 2019 09:19:50 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>
		<category><![CDATA[レスポンシブ]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7071</guid>
		<description><![CDATA[一番かんたんなテーブルのレスポンシブ対応のやり方を紹介します。]]></description>
				<content:encoded><![CDATA[	<div id="Rurippa">




		<h2>目次</h2>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item03">スマホレイアウトの作り方</a></li>
			<li><a href="#item10">最後に</a></li>
		</ul>
		<!-- . -->




		<div id="item00" class="spaceCont"></div>
		<h2>はじめに</h2>
		<p>今回レスポンシブするテーブルはこちら。<br />会社概要など 様々ところで見るテーブルだと思います。</p>

　
		<table class="sample">
			<tr>
				<th>見出し１</th>
				<td>テキストテキスト</td>
			</tr>
			<tr>
				<th>見出し2</th>
				<td>テキストテキストテキスト</td>
			</tr>
			<tr>
				<th>見出し3</th>
				<td>テキストテキストテキストテキスト</td>
			</tr>
		</table>

		<pre class="brush: xml; title: ; notranslate">
		&lt;table&gt;
			&lt;tr&gt;
				&lt;th&gt;見出し１&lt;/th&gt;
				&lt;td&gt;テキストテキスト&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
				&lt;th&gt;見出し2&lt;/th&gt;
				&lt;td&gt;テキストテキストテキスト&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
				&lt;th&gt;見出し3&lt;/th&gt;
				&lt;td&gt;テキストテキストテキストテキスト&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;
		</pre>



		<div id="item03" class="spaceCont"></div>
		<h2>スマホレイアウトの作り方</h2>
		<p>HTMLはそのまま、下記のCSSを追加するだけで、たて積みのレイアウトになります！</p>

    <pre class="brush: xml; title: ; notranslate">
    th,td{
      display: block;
      width: 100%;
    }
    </pre>
    <pre class="brush: xml; title: ; notranslate">
    /* ↓装飾 */
    tr{
      border: 0;
    }
    th{
      font-weight: bold;
      text-align: center;
    }
    </pre>

    <table class="sample styleSp">
      <tr>
        <th>見出し１</th>
        <td>テキストテキスト</td>
      </tr>
      <tr>
        <th>見出し2</th>
        <td>テキストテキストテキスト</td>
      </tr>
      <tr>
        <th>見出し3</th>
        <td>テキストテキストテキストテキスト</td>
      </tr>
    </table>

    <h3>注意点</h3>
    <p>画面を縮めたときに スマホレイアウトになるように<strong>、メディアクエリ</strong>と<strong>ビューポート</strong>をお忘れなく。</p>

    <p>ビューポートがよくわからない場合は、こちらをhead内に貼りましょう。<br />（詳しい説明は、今回は省略します）</p>

      <pre class="brush: xml; title: ; notranslate">&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1&quot;&gt;</pre>


    <p>また、メディアクエリがわからない場合は、今回であれば、下記をCSS内に追記しましょう。<br />@media〜で囲われた部分が ブラウザサイズが768px以下の時に適応されます。その時のブレイクポイントに合わせて、数値などは変わりますのでご注意ください。</p>

    <pre class="brush: xml; title: ; notranslate">
    @media screen and (max-width: 768px) {
    /* 768pxまでの幅の場合に適応される */
      th,td{
        display: block;
        width: 100%;
      }
    }
    </pre>






		<div id="item10" class="spaceCont"></div>
		<h2>最後に</h2>
    <p>うまくできましたか？<br />テーブルのレイアウトも色々ありますし、今回のやり方では難しい場合もあると思いますが、またの機会に他のレイアウトも紹介したいと思います(^^)</p>


	</div>




	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}

		#Rurippa table,
		#Rurippa table tr,
		#Rurippa table th,
		#Rurippa table td {
			border: 0;
		}

		#Rurippa table.sample {
			border-collapse: collapse;
			border-spacing: 0;
			border: 1px solid #333;
		}
	#Rurippa table tr+tr{
    border-top: 1px solid #000;
  }
		#Rurippa table.sample th,
		#Rurippa table.sample td {
      box-sizing: border-box;
			padding: 15px 20px;

		}

		#Rurippa table.sample th {
			width: 120px;
			background-color: #999;
			color: #fff;

		}

		#Rurippa table.styleSp tr{
      border: 0;

    }
		#Rurippa table.styleSp th{
      font-weight: bold;text-align: center;

    }
		#Rurippa table.styleSp th,
    #Rurippa table.styleSp td {
      display: block;
      width: 100%;
    }
		#Rurippa table.styleSp th {

    }





	</style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/table_responsive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>テキストの折り返しの設定について</title>
		<link>https://taneppa.net/overflow_wrap/</link>
		<comments>https://taneppa.net/overflow_wrap/#comments</comments>
		<pubDate>Thu, 26 Sep 2019 03:55:05 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7197</guid>
		<description><![CDATA[枠からテキストがはみ出ないように、折り返しの方法を紹介します。]]></description>
				<content:encoded><![CDATA[	<div id="Rurippa">

		<h3>目次</h3>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item02">word-break : break-allについて</a></li>
			<li><a href="#item03">overflow-wrap: break-word;について</a></li>
<li><a href="#item10">まとめ</a></li>
		</ul>
		<!-- . -->

<div id="item00" class="spaceCont"></div>
<h2>はじめに</h2>


		<p>下記のように、枠から文字が出てしまっていませんか？
			<br />今回は、それらを防ぐための方法を紹介します。</p>

			<p class="sample01">gbhlaeuhgfak/aoerwgjkakmgrolwkrgaoajr,glajdungrklalj</p>



<div id="item02" class="spaceCont"></div>
		<h2>word-break : break-allについて</h2>
		<p>折り返したい部分に「<strong>word-break : break-all;</strong>」を追記するだけで、例え単語の途中や、意図しない部分でも折り返します。</p>


		<h3>サンプル</h3>
		<p class="sample01 style01">gbhlaeuhgfak/aoerwgjkakmgrolwkrgaoajr,glajdungrklalj</p>

		<pre class="brush: xml; title: ; notranslate">
		&lt;p&gt;gbhlaeuhgfak/aoerwgjkakmgrolwkrgaoajr,glajdungrklalj&lt;/p&gt;
		</pre>

		<pre class="brush: xml; title: ; notranslate">
		p {
			word-break : break-all;
		}
		</pre>


<div id="item03" class="spaceCont"></div>
<h2>overflow-wrap: break-word;について</h2>
<p>先ほどと違い、こちらは英単語の途中では折り返しません。ですが、どうしても改行できる場所がない場合は、単語の途中でも改行されるため、使い勝手が良いと思います。</p>





	<h3>サンプル</h3>
	<pre class="brush: xml; title: ; notranslate">
	&lt;p&gt;gbhlaeuhgfak/aoerwgjkakmgrolwkrgaoajr,glajdungrklalj&lt;/p&gt;
	&lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. &lt;/p&gt;
	</pre>

	<pre class="brush: xml; title: ; notranslate">
	p {
		overflow-wrap: break-word;
	}
	</pre>
	<p class="sample01 style02">gbhlaeuhgfak/aoerwgjkakmgrolwkrgaoajr,glajdungrklalj</p>
	<p class="sample01 style02">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>


<div id="item10" class="spaceCont"></div>
<h2>まとめ</h2>
<p>いかがでしたか？<br />細かいけどとても大事な内容だと思いますので、気をつけていきたいですね(^^)</p>



<h3>参考サイト</h3>
<ul>
	<li><a href="http://www.htmq.com/style/word-break.shtml" target="_blank">word-break－スタイルシートリファレンス</a></li>
	<li><a href="http://www.htmq.com/css/overflow-wrap.shtml" target="_blank">overflow-wrap－CSSリファレンス
</a></li>
</ul>


	</div>




	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}
		#Rurippa .sample01 {
			word-wrap: normal;
			width: 150px;
			padding: 20px;
			background: #fff;
			border: 1px solid #333;
		}
		#Rurippa .style01 {
			word-break : break-all;
		}
		#Rurippa .style02 {
			overflow-wrap: break-word;
		}



	</style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/overflow_wrap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ボタンをホバーしたときのエフェクトまとめ（基本編）</title>
		<link>https://taneppa.net/button_hover_sampl01/</link>
		<comments>https://taneppa.net/button_hover_sampl01/#comments</comments>
		<pubDate>Thu, 19 Sep 2019 00:53:58 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=7422</guid>
		<description><![CDATA[ボタンをホバーした時のサンプルをまとめました。コピペでそのまま使用できます。]]></description>
				<content:encoded><![CDATA[	<div id="Rurippa">
		<p>ボタンをホバーしたときによく見る動きを、まとめてみました。コピペでもそのまま使用できます。</p>

		<h3>目次</h3>
		<ul>
			<li><a href="#item00">はじめに</a></li>
			<li><a href="#item01">ふんわり背景色が変化</a></li>
			<li><a href="#item02">枠線の種類が変化</a></li>
			<li><a href="#item03">角丸になる</a></li>
			<li><a href="#item04">文字間が広がる</a></li>
			<li><a href="#item05">背景がスライド（左から右へ）</a></li>
			<li><a href="#item06">背景がスライド（下から上へ）</a></li>
			<li><a href="#item10">最後に</a></li>
		</ul>





		<div id="item00" class="spaceCont"></div>
		<h2>はじめに</h2>

		<p>共通部分のHTML/CSSです。btnCommonはボタンの装飾、btn00は それぞれのボタンによって異なります。</p>

	
		<pre class="brush: xml; title: ; notranslate">
		&lt;p&gt;&lt;a href=&quot;#&quot; class=&quot;btnCommon btn00&quot;&gt;button&lt;/a&gt;&lt;/p&gt;
		</pre>


		<pre class="brush: xml; title: ; notranslate">
		p{
		text-align: center;
		}
		.btnCommon a{
			position: relative;
			display: block;
			width: 150px;
			height: 46px;
			box-sizing: border-box;
			padding: 10px;
			border: 1px solid #333;
			color: #333;
			transition: .2s;
		}
		</pre>




		<div id="item01" class="spaceCont"></div>
		<h2>ゆっくりと背景色が変化</h2>
<p>よく見る動作の１つですね。簡単に実装できて、使いやすいです。</p>

		<p class="txtC">
			<a href="#" class="btnCommon btn01">button1</a>
		</p>

		<pre class="brush: xml; title: ; notranslate">
		/* ボタン１ */
		.btn01:hover {
			background-color: #333;
			color: #fff;
		}
		</pre>




		<div id="item02" class="spaceCont"></div>
		<h2>枠線の種類が変化</h2>
<p>枠線の種類を「dashed（点線）」にしています。</p>

		<p class="txtC">
			<a href="#" class="btnCommon btn02">button2</a>
		</p>
		<pre class="brush: xml; title: ; notranslate">
		/* ボタン2 */
		.btn02:hover{
			border-style: dashed;
		}
		</pre>






		<div id="item03" class="spaceCont"></div>
		<h2>角丸になる</h2>
<p>ホバーすると枠線が角丸に変化します。</p>

		<p class="txtC">
			<a href="#" class="btnCommon btn03">button3</a>
		</p>
		<pre class="brush: xml; title: ; notranslate">
		/* ボタン3 */
		.btn03:hover{
			border-radius: 10px;
		}
		</pre>



		<div id="item04" class="spaceCont"></div>
		<h2>文字間が広がる</h2>
<p>ホバーするとテキストの文字間が広がります。</p>
		<p class="txtC">
			<a href="#" class="btnCommon btn04">button4</a>
		</p>
		<pre class="brush: xml; title: ; notranslate">
		/* ボタン4 */
		.btn04:hover{
			letter-spacing: 2px;
		}
		</pre>



		<div id="item05" class="spaceCont"></div>
		<h2>背景がスライド（左から右へ）</h2>
<p>ホバーすると背景がスライドします。これも、設定次第でいろんな角度・方向へスライドできます。</p>
		<p class="txtC">
			<a href="#" class="btnCommon btn05">button5</a>
		</p>
		<pre class="brush: xml; title: ; notranslate">
		/* ボタン5 */
		.btn05{
			overflow: hidden;
		}

		.btn05:before{
			content: &quot;&quot;;
			z-index: -1;
			position: absolute;
			width: 100%;
			height: 100%;
			top: 0;
			left: -100%;
			background-color: #333;
			transition: .2s;
		}

		.btn05:hover{
			color: #fff;
		}

		.btn05:hover:before{
			left: 0;
		}
		</pre>



		<div id="item06" class="spaceCont"></div>
		<h2>背景がスライド（下から上へ）</h2>
<p>ホバーすると背景がスライドします。先ほどのと、方向が違うだけです。</p>

		<p class="txtC">
			<a href="#" class="btnCommon btn06">button6</a>
		</p>
		<pre class="brush: xml; title: ; notranslate">
		/* ボタン6 */
		.btn06{
			overflow: hidden;
		}

		.btn06:before{
			content: &quot;&quot;;
			z-index: -1;
			position: absolute;
			width: 100%;
			height: 100%;
			bottom: -100%;
			left: 0;
			background-color: #333;
			transition: .2s;
		}

		.btn06:hover{
			color: #fff;
		}

		.btn06:hover:before{
			bottom: 0;
		}
		</pre>




		<div id="item10" class="spaceCont"></div>
		<h2>最後に</h2>
		<p>いかがでしたか？<br />色々な動きをしているボタンも見かけますが、まずは基本が大事なので シンプルでよく見るものをまとめました。よければ使ってみてくださいね。</p>














	</div>

	<style>
		#Rurippa .spaceCont {
			padding-top: 30px;
			margin-top: -30px;
		}

		#Rurippa.btnCommon{text-decoration: none;}

		#Rurippa .txtC{
			text-align: center;
		}
		#Rurippa .btnCommon{
		position: relative;
		display: block;
		width: 150px;
		height: 46px;
		box-sizing: border-box;
		padding: 10px;
		border: 1px solid #333;
		color: #333;
		transition: .2s;
		}
		#Rurippa .btnCommon + .btnCommon{
			margin-top: 10px;
		}

		/* ボタン１ */
		#Rurippa .btn01:hover {
		background-color: #333;
		color: #fff;
		}

		/* ボタン5 */

		#Rurippa .btn05{
		overflow: hidden;
		}

		#Rurippa .btn05:before{
		content: "";
		z-index: -1;
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: -100%;
		background-color: #333;
		transition: .2s;
		}

		#Rurippa .btn05:hover{
		color: #fff;
		}

		#Rurippa .btn05:hover:before{
		left: 0;
		}


		/* ボタン6 */
		#Rurippa .btn06{
		overflow: hidden;
		}

		#Rurippa .btn06:before{
		content: "";
		z-index: -1;
		position: absolute;
		width: 100%;
		height: 100%;
		bottom: -100%;
		left: 0;
		background-color: #333;
		transition: .2s;
		}

		#Rurippa .btn06:hover{
		color: #fff;
		}

		#Rurippa .btn06:hover:before{
		bottom: 0;
		}



		/* ボタン2 */
		#Rurippa .btn02:hover{
		border-style: dashed;
		}


		/* ボタン3 */
		#Rurippa .btn03:hover{
			border-radius: 10px;
		}

		/* ボタン4 */
		#Rurippa .btn04:hover{
			letter-spacing: 2px;
		}

	</style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/button_hover_sampl01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSSで背景を斜めに区切る方法（レスポンシブ可）</title>
		<link>https://taneppa.net/bg_separate_css/</link>
		<comments>https://taneppa.net/bg_separate_css/#comments</comments>
		<pubDate>Mon, 26 Aug 2019 02:46:02 +0000</pubDate>
		<dc:creator>rurippa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[コーディング]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=6457</guid>
		<description><![CDATA[CSSで背景を斜めに区切る方法を紹介します。]]></description>
				<content:encoded><![CDATA[	<div id="Rurippa">
		<p>背景を斜めに区切ったレイアウトにする方法を紹介します。
			<br />色々なやり方がありますが、画像を使わずCSSのみでできる２パターンを紹介します。</p>




		<h2>目次</h2>
		<ul>
			<li><a href="#item00">参考サイト例</a></li>
			<li><a href="#item02">borderを使った方法</a></li>
			<li><a href="#item03">transform: skew を使った方法</a></li>
			<li><a href="#item04">最後に</a></li>
		</ul>


		<div id="item00" class="spaceCont"></div>
		<h2>参考サイト例</h2>
		<p>斜めに区切るレイアウトを使っているサイトをピックアップしてみました。<br />よければご覧ください。</p>


		<p><a href="https://yukyu-chouseisan.com/" target="_blank"><img src="https://taneppa.net/wp-content/uploads/2019/05/bg_sample_site01-500x311.jpg" alt="bg_sample_site01" width="500" height="311" class="alignnone size-medium wp-image-6458" /></a></p>
		<p>・<a href="https://yukyu-chouseisan.com/" target="_blank">有休調整さん presented by Club Med×調整さん</a></p>


		<p><a href="https://plusgraph-ca.jp/" target="_blank"><img src="https://taneppa.net/wp-content/uploads/2019/05/bg_sample_site02-500x295.png" alt="bg_sample_site02" width="500" height="295" class="alignnone size-medium wp-image-6459" /></a></p>
		<p>・<a href="https://plusgraph-ca.jp/" target="_blank">+graph Cloud &#038; Agent</a></p>




		<div id="item01" class="spaceCont"></div>
		<h2>実装方法</h2>




		<div id="item02" class="spaceCont"></div>
		<h3>borderを使った方法</h3>
		<p>borderで三角形を作る仕組みを利用して、セクション間に配置する方法です。
    <br />セクションに擬似要素（before,after）で三角形を作ります。</p>
    <p>背景画像を使った方法と同じく、ブラウザサイズによって、三角形の形が多少伸縮するので、角度が変わると困る場合は 気をつけてください。</p>
		<p>※三角形の作り方が よくわからない人は、「三角形の作り方」を書いているページがあるので、ご覧ください。
    <br />「<a href="https://taneppa.net/css_make_a_triangle/">CSSで三角形をつくる方法 | たねっぱ！</a>」</p>

    <div class="section1">
      <p>コンテンツ</p>
    </div>

    <div class="section2">
      <p>コンテンツ</p>
    </div>


    <pre class="brush: xml; title: ; notranslate">
    &lt;div class=&quot;section1&quot;&gt;
      &lt;p&gt;コンテンツ&lt;/p&gt;
    &lt;/div&gt;

    &lt;div class=&quot;section2&quot;&gt;
      &lt;p&gt;コンテンツ&lt;/p&gt;
    &lt;/div&gt;
    </pre>

    <pre class="brush: xml; title: ; notranslate">
    .section1,
    .section2{
      /*レイアウト用のCSS*/
      padding: 50px;
    }
    .section1{
      position: relative;

      /*レイアウト用のCSS*/
      background-color: pink;
    }
    .section1::before{
      content:&quot;&quot;;
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 0;
      border-style: solid;

      /*ここで三角形のサイズを決める。
      必ず幅100vwにして、ブラウザサイズいっぱいにしてください。*/
      border-width: 0 0 100px 100vw ;

      border-color: transparent transparent #fff transparent;
    }
    </pre>








		<div id="item03" class="spaceCont"></div>
		<h3>transform: skew を使った方法</h3>
		<p>transform: skew を使って、セクションの擬似要素に平行四辺形を作り、配置する方法です。</p>

    <div class="section11">
      <p>コンテンツ</p>
    </div>

    <div class="section22">
    	<p>コンテンツ</p>
    </div>

    <pre class="brush: xml; title: ; notranslate">
    &lt;div class=&quot;section1&quot;&gt;
      &lt;p&gt;コンテンツ&lt;/p&gt;
    &lt;/div&gt;

    &lt;div class=&quot;section2&quot;&gt;
    	&lt;p&gt;コンテンツ&lt;/p&gt;
    &lt;/div&gt;
    </pre>


    <pre class="brush: xml; title: ; notranslate">
    .section1,
    .section2{
      padding: 50px 30px;
    }

    .section1 {
      background:pink;
    }
    .section2 {
      position: relative;
      z-index: 0;
    }
    .section2::after{
      content: '';
      position: absolute;
      left:0;
      top: 0;

      /*四角形を傾けます*/
      transform: skewY(-5deg);
      transform-origin: bottom left;

      z-index: -1;
      width:100%;
      height:100%;
      background:#fff;
    }
    </pre>















<div id="item04" class="spaceCont"></div>
		<h2>最後に</h2>
		<p>webサイトではよく見かけるレイアウトなので、チャレンジしてみてください♪</p>





	</div>




	<style>
  #Rurippa .spaceCont {
    padding-top: 30px;
    margin-top: -30px;
  }

		#Rurippa .section00,
		#Rurippa .section11{
      background:pink;
    }
		#Rurippa .section2
     {background: #fff;}
		#Rurippa .section11,
		#Rurippa .section22,
		#Rurippa .section1,
		#Rurippa .section2 {
      margin: 0;}
      		#Rurippa .section2 p{
            margin-top: 0;
          }

		#Rurippa .section0_1{
      background: url(https://taneppa.net/wp-content/uploads/2019/05/bg_pink_sample01.png)no-repeat top left;
      -webkit-background-size: 100% auto;
      background-size: 100% auto;
    }
		#Rurippa .section0_1,
		#Rurippa .section0_2,
		#Rurippa .section1,
    #Rurippa .section2 {
      			padding: 30px;
    }
		#Rurippa .section1 {
			position: relative;
			background-color: pink;

      overflow-x: hidden;
		}

		#Rurippa .section1::before {
			position: absolute;
			bottom: 0;
			left: 0;
			width: 0;
			height: 0;
			content: "";
			border-style: solid;
			border-width: 0 0 100px 100vw;
			border-color: transparent transparent #fff transparent;
		}




    #Rurippa .section11,
    #Rurippa .section22{
      padding: 30px;
      box-sizing: border-box;
    }
    #Rurippa .section22 {
      position: relative;
			padding: 50px 30px;
      z-index: 0;
		}
  #Rurippa .section22 ::after{
    content: '';
    position: absolute;
    z-index: -1;
    left:0;
    top: 0;
    width:100%;
    height:100%;
    background:#fff;
    transform: skewY(-5deg);
    transform-origin: bottom left;
    }

	</style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/bg_separate_css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
