<?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; レスポンシブ</title>
	<atom:link href="https://taneppa.net/tag/%e3%83%ac%e3%82%b9%e3%83%9d%e3%83%b3%e3%82%b7%e3%83%96/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>一番かんたんなテーブルのレスポンシブ対応</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/responsive_background_image/</link>
		<comments>https://taneppa.net/responsive_background_image/#comments</comments>
		<pubDate>Wed, 29 Aug 2018 01:19:16 +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=5353</guid>
		<description><![CDATA[backgroundで表示した画像を、レスポンシブ対応する方法を紹介します！]]></description>
				<content:encoded><![CDATA[  <p>背景画像の比率を保ったまま、レスポンシブ対応する方法を紹介します！</p>


  <h2>目次</h2>
  <ul>
    <li><a href="#item01">１.background-imageを使ってレスポンシブ？</a></li>
    <li><a href="#item02">２.サンプル</a></li>
    <li><a href="#item03">３.ポイント解説</a></li>
    <li><a href="#item04">４.最後に</a></li>
  </ul>







<div id="Rurippa">

    <div id="item01" class="spaceCont"></div>
    <h2>background-imageを使ってレスポンシブ？</h2>
    <p><img src="https://taneppa.net/wp-content/uploads/2018/08/responsive_img_sample01.jpg" alt="イメージ"></p>

    <p>例えば、写真の上にテキストやイラストがのっているときに、
      <br /><strong>その写真の比率を保ったまま可変する</strong>ことが、できるようになります。</p>





      <div id="item02" class="spaceCont"></div>
      <h2>サンプル</h2>

      <p>サンプル写真をbackground-imageで表示し、
        <br />横幅100%でレスポンシブしてみました。
      <br />（実際にブラウザのウィンドウを縮めたりしてみてくださいね）</p>
      <div class="sample01"></div>


      <pre class="brush: xml; title: ; notranslate">
      &lt;div class=&quot;box&quot;&gt;&lt;/div&gt;

      &lt;style&gt;
        .box{
          width: 100%;
          height: 0;

          /* (画像の高さ / 画像の横幅) × 100 */
          padding-top: 66.6666666667%;

          background: url(画像のパス);
          background-repeat: no-repeat;
          background-position: center center;
          background-size: cover;
        }
      &lt;/style&gt;
      </pre>






    <div id="item03" class="spaceCont"></div>
    <h2>ポイント解説</h2>


    <p>height: 0;にしていますが、その分padding-topを使って高さを保っています。
      <br />また、%を使うことで比率を保ったまま可変できるようになる仕組みです！
    <br />padding-topの数値は <strong>(画像の高さ / 画像の横幅) × 100</strong> で求められます。</p>


    <h3>押さえておきたいポイント（padding-topについて）</h3>
    <p>結構間違えられやすいと思うのですが・・・。
　　　　　　　　　　<br />padding-topと、padding-bottom（marginも同様）に％を使うとき、
     <br /><strong>親要素のよこ幅（width）が基準</strong>となっているんです。</p>

      <p>…ん？？　となっている方のために、例を出します！
<br />例えば、width:300pxの親要素の中に、width:200pxの四角があるとします。</p>

       <p>その四角に<strong>padding-top: 100%</strong> をつけると、親要素のwidthが基準なので<strong>四角の高さは300px</strong>になります。
    <br />同様に　<strong>padding-top: 50%なら高さが150pxになるのです。</strong></p>

      
    <p><img src="https://taneppa.net/wp-content/uploads/2018/08/responsive_img01.jpg" alt="イメージ"></p>

<p>この仕組みがわかると、今回のCSSも理解しやすいと思います(^^)</p>



    <div id="item04" class="spaceCont"></div>
    <h2>最後に</h2>
    <p>レスポンシブやスマホコーディングが多くなっているので、どうしてもimgタグではなくbackgroundを使いたい場面に出くわすこともあるかと思います。<br />そのときは、ぜひお役立てください♪</p>


</div>




  <style>
  #Rurippa .sample01{
    width: 100%;
    height: 0;
    padding-top: 66.6666666667%;
    background: url(https://taneppa.net/wp-content/uploads/2018/05/sample_flower01.jpg)no-repeat 0 0;
    background-size: cover;
  }

  #Rurippa .spaceCont {
    padding-top: 30px;
  }
  </style>



]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/responsive_background_image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>「width崩れ、カラム落ちにはこれ」まるでチート！【CSS3】box-sizingが実はすごい子</title>
		<link>https://taneppa.net/box-sizing/</link>
		<comments>https://taneppa.net/box-sizing/#comments</comments>
		<pubDate>Thu, 17 Jul 2014 02:45:02 +0000</pubDate>
		<dc:creator>yanoppa!</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[コーディング]]></category>
		<category><![CDATA[レスポンシブ]]></category>
		<category><![CDATA[初心者向け]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=1914</guid>
		<description><![CDATA[レスポンシブで良く使う、CSS3 box-sizingの使い方を紹介します。ぜひともスマホサイトなんかに活用ください。]]></description>
				<content:encoded><![CDATA[<style><!--
.tbl tr th,
.tbl tr td {
  padding:4px 0 4px 16px;
}
.tbl tr th {
  width:240px;
}
h3 {
  margin-top:20px;
}
--></style>
<div style="line-height: 2;">
<h2>「width崩れ、カラム落ちにはこれ」まるでチート！<strong>【CSS3】box-sizing</strong>が実は<strong>すごい子</strong></h2>
<p>おはこんばんちわ、スニペのショートカットをネトゲみたいにファンクションキーに振って、技出してる感じでグラデーション作ったりしてニヤニヤしてるやのっぱです(´・ω・｀)v</p>
<br />
<p>あんまし知られてない上に、IE8からしか使えないので(またおまえかIEたそ。。。)そんなに聞かないプロパティですが、<br />近年のレスポンシブブーム？やスマホサイトには欠かせない、<strong>box-sizing</strong>を<strong>width計算</strong>に悩める子羊たちへ送りたいと思います。</p>
<br />
<p>さて、まずは<strong>box-sizing</strong>ってなんぞや？<br /> 聞いたこともなぃわ！っという方もいらっしゃると思いますので、<br /> このチート超絶呪文<strong>box-sizing</strong>の概要をさくっとご説明いたします。</p>
<br />
<h3><strong>box-sizing</strong></h3>
<br />
<p>ボックスサイズの<strong>算出方法</strong>(ここ重要)を指定することが出来ます。</p>
<br />
<h3><strong>プロパティ</strong></h3>
<table class="tbl" style="border: 1px solid #93580D;" border="1">
<tbody>
<tr>
<th scope="row">content-box</th>
<td>初期値：padding・borderをwidth・heightに含めない</td>
</tr>
<tr>
<th scope="row">border-box</th>
<td>padding・borderをwidth・heightに含める</td>
</tr>
<tr>
<th scope="row">inherit</th>
<td>親要素の値を継承する(まぁ使わない)</td>
</tr>
</tbody></table>
<br />
<p><strong>※ベンダープレフィックス必須</strong></p>
<br />
<p>ということです。</p>
<br />
<p>これでは、なんのこっちゃ抹茶に紅茶ですよね。</p>
<br />
<p>ざっくり言いますと、今までの記事でもありましたが<strong>border</strong>や<strong>padding</strong>は<strong>width・height</strong>に影響を及ぼします。<br /> そのたびに計算して、<strong>width・height</strong>を調節していたのですが<br /> この<strong>box-sizing</strong>の値を<strong>border-box</strong>にすると、自動算出により<strong>width</strong>や<strong>height</strong>の値に合わせて<strong>border</strong>や<strong>padding</strong>の分、ボックスサイズが小さく調整されます。</p>
<br />
<p>つまり、<strong>width</strong>決めてたら<strong>border</strong>とか<strong>padding</strong>とか足しても勝手に<strong>width</strong>内に収まるようにしてくれるんです。</p>
<br />
<p>これは今までレスポンシブでグローバルナビを作る時など、<strong>border</strong>が邪魔で縮んでる途中でカラム落ちしていたのが、<strong>border</strong>含めた<strong>width</strong>になるのでカラム落ちしなくなります！ Oh my コンブ！</p>
<br />
<p>２カラムとかした時に、<strong>padding</strong>調整するたびに<strong>width計算</strong>してたのが、しなくてよくなります！！</p>
<br />
<p>レスポンシブには最適でオールオッケーな夢の様なプロパティです。</p>
<br />
<p>でわ、実演していきましょう！</p>
<br />
<p>両方共<strong>width</strong>を<strong>300px</strong>、<strong>height</strong>を<strong>80px</strong>にしています。</p>
<br /><style><!--
.contBlock {
  width:500px;
  margin:0 auto;
  background:#fff;
  border:2px solid #ccc;
}
.contBlock .dreamBox01 {
  width:300px;
  height:80px;
  padding:10px;
  margin:20px auto;
  background:#8EF9FF;
  border:4px solid #ccc;
}
.contBlock .dreamBox02 {
  box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;
  width:300px;
  height:80px;
  padding:10px;
  margin:20px auto;
  background:#A4FFA6;
  border:4px solid #ccc;
}
--></style>
<div class="contBlock"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;style&gt;
.contBlock {
  width:500px;
  margin:0 auto;
  background:#fff;
  border:2px solid #ccc;
}
.contBlock .dreamBox01 {
  width:300px;
  height:80px;
  padding:10px;
  margin:20px auto;
  background:#8EF9FF;
  border:4px solid #ccc;
}
.contBlock .dreamBox02 {
  box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;
  width:300px;
  height:80px;
  padding:10px;
  margin:20px auto;
  background:#A4FFA6;
  border:4px solid #ccc;
}
&lt;/style&gt;
&lt;div class=&quot;contBlock&quot;&gt;
	&lt;div class=&quot;dreamBox01&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;dreamBox02&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre><br /><br /><br />
<p>おわかりいただけただろうか。。。</p>
<br />
<p>下のboxは設定したwidthを維持してくれていることがっ！！<br /> これでなにができるのか。。。ということですが<br /> 実に色々なことがカンタンに実現するようになります。</p>
<br />
<p>まずはレスポンシブなナビでも作ってみましょう！</p>
<style><!--
/* clearfix 
----------------------------------------------------------------------*/
.clearfix:after {
	content: ".";
	display: block;
	visibility: hidden;
	height: 0;
	clear: both;
}
/* WinIE7 only */
*:first-child+html .clearfix {
	height: 1%;
}
/* WinIE6 and below */
/* hide \*/
* html .clearfix {
	height: 1%;
}	
.navTest {
  width:100%;
  padding:4px 0;
  border: solid #ddd;
  border-width: 2px 0 2px 0;
  background: #5b5b5b; /* Old browsers */
  background: -moz-linear-gradient(top,  #5b5b5b 0%, #2b2b2b 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5b5b5b), color-stop(100%,#2b2b2b)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #5b5b5b 0%,#2b2b2b 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #5b5b5b 0%,#2b2b2b 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #5b5b5b 0%,#2b2b2b 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #5b5b5b 0%,#2b2b2b 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5b5b5b', endColorstr='#2b2b2b',GradientType=0 ); /* IE6-8 */
}
.navTest.w80 {
  width:80%;
  margin:0 auto;
}
.navTest .navList {
  width:80%;
  margin:0 auto;
  padding:0;
  list-style:none;
  color:#FFFFFF;
}
.navTest .navList li {
  box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;
  float:left;
  width:20%;
  padding:1% 0;
  background:none;
  border-right:2px solid #ccc;
  text-align:center;
}
.navTest .navList li:first-child {
  border-left:2px solid #ccc;
}
--></style>
<div class="navTest">
<ul class="navList clearfix">
	<li>NAVI01</li>
	<li>NAVI02</li>
	<li>NAVI03</li>
	<li>NAVI04</li>
	<li>NAVI05</li>
</ul>
</div>
<pre class="brush: xml; title: ; notranslate">
&lt;style&gt;
/* clearfix 
----------------------------------------------------------------------*/
.clearfix:after {
	content: &quot;.&quot;;
	display: block;
	visibility: hidden;
	height: 0;
	clear: both;
}
/* WinIE7 only */
*:first-child+html .clearfix {
	height: 1%;
}
/* WinIE6 and below */
/* hide \*/
* html .clearfix {
	height: 1%;
}	
.navTest {
  width:100%;
  padding:4px 0;
  border: solid #ddd;
  border-width: 2px 0 2px 0;
  background: #5b5b5b; /* Old browsers */
  background: -moz-linear-gradient(top,  #5b5b5b 0%, #2b2b2b 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5b5b5b), color-stop(100%,#2b2b2b)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #5b5b5b 0%,#2b2b2b 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #5b5b5b 0%,#2b2b2b 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #5b5b5b 0%,#2b2b2b 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #5b5b5b 0%,#2b2b2b 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5b5b5b', endColorstr='#2b2b2b',GradientType=0 ); /* IE6-8 */
}
.navTest .navList {
  width:80%;
  margin:0 auto;
  padding:0;
  list-style:none;
  color:#FFFFFF;
}
.navTest .navList li {
  box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;
  float:left;
  width:20%;
  padding:1% 0;
  background:none;
  border-right:2px solid #ccc;
  text-align:center;
}
.navTest .navList li:first-child {
  border-left:2px solid #ccc;
}
&lt;/style&gt;
&lt;div class=&quot;navTest&quot;&gt;
	&lt;ul class=&quot;navList clearfix&quot;&gt;
		&lt;li&gt;NAVI01&lt;/li&gt;
		&lt;li&gt;NAVI02&lt;/li&gt;
		&lt;li&gt;NAVI03&lt;/li&gt;
		&lt;li&gt;NAVI04&lt;/li&gt;
		&lt;li&gt;NAVI05&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;
</pre><br /><br /><br />
<p>これだと現在の当ブログでは(←レスポンシブに改修中)縮んだ時がわからないので、<strong>navTest</strong>の<strong>width</strong>を<strong>80％</strong>に変えてみます。</p>
<div class="navTest w80">
<ul class="navList clearfix">
	<li>NAVI01</li>
	<li>NAVI02</li>
	<li>NAVI03</li>
	<li>NAVI04</li>
	<li>NAVI05</li>
</ul>
</div>
<br />
<p>わかりにくいですが、<strong>border</strong>を含む<strong>width</strong>なのでカラム落ちをしません。<br /> <strong>border</strong>は<strong>％指定</strong>ができないので今までは一定の<strong>width</strong>まで縮むと<strong>width</strong>のバランスが崩れてカラム落ちしていましたが<br /> これでレスポンシブやスマホに対応できますね！</p>
<p>また、その辺よくわからない方が編集をするような場合(<strong>wordpress</strong>など)も崩れ防止の一つとして役立ちます。</p>
<br />
<p>では、２カラムのボックスモデルも作ってみましょう！</p>
<style><!--
.testBlock {
  width: 700px;
  margin:0 auto;
  border:2px solid #ccc;
}
.testBlock .header {
  width: 100%;
  height:30px;
  background:#FFD1D1;
  border-bottom:2px solid #ccc;
}
.testBlock .contents {
  width: auto;
  background:#fff;
}
.testBlock .contents .main {
    box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;

  float:left;
  width: 580px;
  height:400px;
  background:#99E4FF;
}
.testBlock .contents .main.b20 {
  border:20px solid #32179E;
}
.testBlock .contents .side {
    box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;
  float:right;
  width:110px;
  height:400px;
  background:#C1FFE7;
}
.testBlock .contents .side.b20 {
  border:20px solid #32179E;
}
.testBlock .footer {
  width:100%;
  height:30px;
  background:#EDCEFC;
  border-top:2px solid #ccc;
}
--></style>
<div class="testBlock"></div>
<pre class="brush: xml; title: ; notranslate">
&lt;style&gt;
.testBlock {
  width: 700px;
  margin:0 auto;
  border:2px solid #ccc;
}
.testBlock .header {
  width: 100%;
  height:30px;
  background:#FFD1D1;
  border-bottom:2px solid #ccc;
}
.testBlock .contents {
  width: auto;
  background:#fff;
}
.testBlock .contents .main {
    box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;

  float:left;
  width: 580px;
  height:400px;
  background:#99E4FF;
}
.testBlock .contents .side {
    box-sizing:border-box;
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  -ms-box-sizing:border-box;
  -o-box-sizing:border-box;
  float:right;
  width:110px;
  height:400px;
  background:#C1FFE7;
}
.testBlock .footer {
  width:100%;
  height:30px;
  background:#EDCEFC;
  border-top:2px solid #ccc;
}
&lt;/style&gt;
&lt;div class=&quot;testBlock&quot;&gt;
	&lt;div class=&quot;header&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;contents clearfix&quot;&gt;
		&lt;div class=&quot;main&quot;&gt;&lt;/div&gt;
		&lt;div class=&quot;side&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;footer&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre><br /><br /><br />
<p>では、今回は<strong>border</strong>をがっつり入れてみましょう！<br /> もちろんこのまま<strong>width</strong>を変えずにいきます！</p>
<br />
<div class="testBlock"></div>
<br />
<p>こんなかんじで<strong>width</strong>を<strong>再計算</strong>しなくても、収まってくれます！</p>
<p>気をつけないといけないことは、中の領域が狭まっているということ！<br /> 下手に一個一個box-sizingを指定するより、*などで全体に適応させたほうが良いかもしれませんね！</p>
<br />
<p>すべてのプロパティに言えることですが、使い所に気をつけて<br /> 楽にコーディングしていきましょう！(・ω&lt;)ﾉｼ</p>
</div>
]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/box-sizing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>レスポンシブでアニメーションも美しいWordPressテーマ11選</title>
		<link>https://taneppa.net/beautiful_responsive/</link>
		<comments>https://taneppa.net/beautiful_responsive/#comments</comments>
		<pubDate>Fri, 29 Nov 2013 11:00:33 +0000</pubDate>
		<dc:creator>funeppa!</dc:creator>
				<category><![CDATA[Web制作]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[Webデザイン]]></category>
		<category><![CDATA[パララックスサイト]]></category>
		<category><![CDATA[レスポンシブ]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=1206</guid>
		<description><![CDATA[フラットデザイン、シングルページ、フルスクリーン、パララックス、Retina対応…　Webのトレンドを盛り込んだ見応えのあるWordPressテーマを集めてみました。

見栄えのするテーマはデザインやアニメーションの参考にもなりますね。

もちろんどれもレスポンシブ対応。PCでご覧の方はブラウザサイズを変えて変化を確認してみましょう！]]></description>
				<content:encoded><![CDATA[<div style="margin-bottom: 20px">
<h2>レスポンシブなWordPressテーマをあつめてみた</h2>
<p>レスポンシブデザインが話題になって久しいですね。<br />
レスポンシブやRetina対応はWordPressテーマでもホットなキーワードです。<br />
ワンソースでレスポンシブがベストな選択かどうかは案件によりけりでしょうが、トレンドはしっかり抑えておきたいところ。<br />
今回あえて有料のものばかりをチョイス。WordPressテーマを探すとき、ついつい無料のやつばっかり探しがちなんですが、こうやって有料のテーマを見るとさすがに見応えありますね。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">GE Trends</h3>
<p><a href="http://cb-theme.com/demo/?theme=getrends" target="_blank"><img alt="DeTrend" src="https://taneppa.net/wp-content/uploads/2013/11/DeTrend.jpg" width="600" height="450" /></a></p>
<p><a title="GE Trends- Responsive Voting WordPress Theme" href="http://cb-theme.com/demo/?theme=getrends" target="_blank">GE Trends- Responsive Voting WordPress Theme</a></p>
<p>シャープなアニメーションと美しいレイアウトが目を引く、ファッショナブルなテーマ。アパレル系のサイトなんかに良さそうです。</p>
<p>キービジュアルをスライドさせたときの円形メニューのはけ方も気持ちいい。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Dreamer</h3>
<p><a href="http://themeforest.net/item/dreamer-photo-video-parallax-wordpress-theme/full_screen_preview/5138260?ref=graphicdesignjunction" target="_blank"><img alt="Dreamer" src="https://taneppa.net/wp-content/uploads/2013/11/Dreamer.jpg" width="600" height="450" /></a></p>
<p><a title="Dreamer - Photo &amp; Video Parallax WordPress Theme" href="http://themeforest.net/item/dreamer-photo-video-parallax-wordpress-theme/full_screen_preview/5138260?ref=graphicdesignjunction" target="_blank">Dreamer &#8211; Photo &amp; Video Parallax WordPress Theme</a></p>
<p>長ーいシングルページでパララックス、というのももちろんポイントですが、使われてるフォントのバランス感も絶妙。</p>
<p>モノトーン＋オレンジの絞り込んだカラーで、文字のジャンプ率やレイアウトで魅せていくやり方は真似したいところ。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Realnews</h3>
<p><a href="http://ridwanstudio.com/demo/?product=Realnews" target="_blank"><img class="alignnone size-full wp-image-1265" alt="RealNews" src="https://taneppa.net/wp-content/uploads/2013/11/RealNews1.jpg" width="600" height="450" /></a></p>
<p><a href="http://ridwanstudio.com/demo/?product=Realnews" target="_blank">Realnews &#8211; Stylish and Responsive Magazine Theme</a></p>
<p>モノクロベースの、ニュースペーパーのようなデザイン。モノクロもWebデザイントレンドのひとつですね。</p>
<p>抑えたカラーと整然としたレイアウトが、知的な雰囲気を出しています。テキストメインの情報系サイトなんかにいいんじゃないでしょうか。</p>
<p>テキストが横にスクロールするやつも、こんなデザインだと株式速報みたいでNEWSな感じがするなーｗ</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">OneUp</h3>
<p><a href="http://demo.pixelentity.com/?oneup_wp" target="_blank"><img alt="OneUp" src="https://taneppa.net/wp-content/uploads/2013/11/OneUp1.jpg" width="600" height="338" /></a></p>
<p><a href="http://demo.pixelentity.com/?oneup_wp" target="_blank">OneUp &#8211; One Page Parallax Retina WordPress Theme</a></p>
<p>TwitterのBootstrapフレームワーク上に構築されたテーマ。</p>
<p>シングルページでパララックス、美しいデモページという見栄えもさることながら、ドラッグ＆ドロップでスピーディにページが作れちゃったりっていう使いやすさも魅力のようです。</p>
<p>ダウンロード上位の人気テーマです。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Salient</h3>
<p><a href="http://themeforest.net/item/salient-responsive-multipurpose-theme/full_screen_preview/4363266" target="_blank"><img alt="Salient" src="https://taneppa.net/wp-content/uploads/2013/11/Salient1.jpg" width="600" height="450" /></a></p>
<p><a title="Salient - Responsive Multi-Purpose Theme" href="http://themeforest.net/item/salient-responsive-multipurpose-theme/full_screen_preview/4363266" target="_blank">Salient &#8211; Responsive Multi-Purpose Theme</a></p>
<p>トップページの横幅いっぱいの動画がインパクト大。（いや、このおじさんがってことじゃなく。）</p>
<p>動画が動きながらのパララックスってあまり見かけないので、とても印象的です。（スマホサイズだとパララックスしないようになってます）</p>
<p>チュートリアル動画やカスタマイズのしやすさもあって、8000近いダウンロード数です。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Raw</h3>
<p><a href="http://wave-themes.com/demo/raw2/#home" target="_blank"><img class="alignnone size-full wp-image-1283" alt="Raw" src="https://taneppa.net/wp-content/uploads/2013/11/Raw1.jpg" width="600" height="450" /></a></p>
<p><a href="http://wave-themes.com/demo/raw2/#home" target="_blank">RAW &#8211; One &amp; Multi Page Multi-Purpose Theme</a></p>
<p>こちらも動画とパララックスの組み合わせの、シングルページのテーマ。</p>
<p>スクロールしていくと、いろんなところがアニメーションしながら表示されていきます。仕事が細かいな―。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Chroma</h3>
<p><a href="http://t2themes.com/themes/chroma/demo" target="_blank"><img class="alignnone size-full wp-image-1267" alt="Chroma" src="https://taneppa.net/wp-content/uploads/2013/11/Chroma.jpg" width="600" height="450" /></a></p>
<p><a title="Chroma - A Responsive Photography Theme" href="http://t2themes.com/themes/chroma/demo" target="_blank">Chroma &#8211; A Responsive Photography Theme</a></p>
<p>フルスクリーンが印象的な、写真を見せるのに適したテーマ。</p>
<p>アルバムには自動的に写真にウォーターマークをつける機能も。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Other</h3>
<p><a href="http://switcher.madeinebor.com/?theme=Other-WP" target="_blank"><img class="alignnone size-full wp-image-1269" alt="Other" src="https://taneppa.net/wp-content/uploads/2013/11/Other.jpg" width="600" height="344" /></a></p>
<p><a title="Other - Creative Photography WordPress Theme" href="http://switcher.madeinebor.com/?theme=Other-WP" target="_blank">Other &#8211; Creative Photography WordPress Theme</a></p>
<p>画像をタイル状に並べる「Masonry」のほか、細長い短冊状に並べる「Vertical」や「Horizontal」などのスタイルが選べ、いずれもグリッドを活かしたレイアウトが美しいテーマ。</p>
<p>画像メインのサイトやポートフォリオなんかに良さそうです。</p>
<p>マウスオーバーのアニメーションも気持ちいい。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Rush</h3>
<p><a href="http://themeforest.net/item/rush-multipurpose-creative-responsive-website/full_screen_preview/5123022" target="_blank"><img class="alignnone size-full wp-image-1276" alt="Rush" src="https://taneppa.net/wp-content/uploads/2013/11/Rush.jpg" width="600" height="450" /></a></p>
<p><a href="http://themeforest.net/item/rush-multipurpose-creative-responsive-website/full_screen_preview/5123022" target="_blank">Rush &#8211; Multipurpose Creative Responsive Website</a></p>
<p>「Recent Projects」や「Portfolio」などのページが用意された、ポートフォリオに適したテーマ。</p>
<p>ポートフォリオページはマウスオーバーするとサムネイルがぺろりとめくれたり、ちょっとした仕掛けが楽しい。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Wilder</h3>
<p><a href="http://themeforest.net/item/wilder-flat-one-page-responsive-wordpress-theme/full_screen_preview/5487594" target="_blank"><img src="https://taneppa.net/wp-content/uploads/2013/11/Wilder-500x375.jpg" alt="Wilder" width="500" height="375" class="alignnone size-medium wp-image-1318" /></a></p>
<p><a title="Wilder - Flat One Page Responsive WordPress Theme" href="http://themeforest.net/item/wilder-flat-one-page-responsive-wordpress-theme/full_screen_preview/5487594" target="_blank">Wilder &#8211; Flat One Page Responsive WordPress Theme</a></p>
<p>ワンページで、メニューを選択するとページ全体が横にスライドするパターンのテーマ。</p>
<p>中彩度色の色使いが素敵な、モダンなカラーリングです。</p>
<p>こういう、色相差が大きいのにシックにまとめる色使いは、日本のWebサイトではあまり見かけませんね。参考になります。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">Concept 1</h3>
<p><a href="http://themeforest.net/item/concept-1-modern-and-creative-wordpress-theme/full_screen_preview/4789870" target="_blank"><img alt="Consept1" src="https://taneppa.net/wp-content/uploads/2013/11/Consept1.jpg" width="600" height="450" /></a></p>
<p><a title="Concept 1 - Modern and Creative WordPress Theme" href="http://themeforest.net/item/concept-1-modern-and-creative-wordpress-theme/full_screen_preview/4789870" target="_blank">Concept 1 &#8211; Modern and Creative WordPress Theme</a></p>
<p>Bootstrapのフレームワークで構築されたモダンでクリーンな印象のテーマ。</p>
<p>シンプルなフラットデザインですが、一見単色に見える背景もよく見るとざらっとした質感のテクスチャを使っていたり、控えめなストライプやシャドウをうまく使っていたりするのは、取り入れたい小ワザです。</p>
</div>
<div style="margin-bottom: 20px">
<h3 style="margin-bottom: 10px">まとめ</h3>
<p>いかがでしたでしょうか？</p>
<p>こうやって見てみると、フルスクリーンで写真を使って、キャッチコピーや見出しをセンター揃え、というのが多くなってる印象です。</p>
<p>デバイスサイズがいろいろになって、センタリングのレイアウトがいろんなデバイスに対応しやすい、っていうのがあるのかもしれません。</p>
<p>Webフォントが当たり前になっているのも海外ならでは。日本語ももっとWebフォントが使いやすくなるといいですよね。</p>
<p>今回ご紹介したテーマはいずれも <a href="http://themeforest.net" target="_blank">themeforest</a> で購入可能ですが、 themeforest を覗いてみるだけでもずいぶん刺激になりました。</p>
<p>いずれも＄50前後で、思ったより安いんですねー。</p>
<p>がんばって themeforest で自作のテーマを販売する、なんていうのもアリかもしれませんね。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/beautiful_responsive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
