1. Mac�Υۡ���ڡ������������� > 
  2. ̵���ۡ���ڡ������� > 
  3. HTML��2�����쥤�����Ȥ��ѹ�������ˡ

HTML��2�����쥤�����Ȥ��ѹ�������ˡ

2014/04/19

�ᥤ�󥳥�ƥ����ʬ��ʣ���Υ����Ƕ��ڤ�ȡ��͡��ʾ���򸫤䤹���Ǻܤ�������Ǥ��ޤ���
����ν����Υ���ץ�ڡ������Ѱդ��ޤ����Τǡ����������ƤȰ��ˤ�������������

�����Ȥϡ�

�����Ȥϥ���ƥ�Ĥ���λ��Ǥ�����2�����ˤ���פȤ�������ʬ����䤹���ޤǤ���������ȡ��ʲ��Τ褦�ˤʤ�ޤ�����¦��1�����Dz�¦��2�����Ǥ���

column_001

2�����������ǺܤǤ������¿����¾�Υڡ����Υ���ƥ�ĤξҲ𤹤���ʤɤ˳��ѤǤ��ޤ��� ����Ǥϼºݤ˥ᥤ�󥳥�ƥ����ʬ��2�������ѹ����Ƥߤޤ��礦��

HTML���

�ᥤ�󥳥�ƥ����ʬ�ˡ���¦����¦�Υ���ƥ�Ĥ�񤯥��ꥢ����ޤ���
�ʲ��Υ����������ɤ�#main����ɲä��Ƥ���������

<div class="two-column">
	<div class="two-column-left">
		<h2>�������</h2>
		��¦�Υ��������륳��ƥ�Ĥ򤳤��˽񤭤ޤ���
	</div>

	<div class="two-column-right">
		<h2>�������</h2>
		��¦�Υ��������륳��ƥ�Ĥ򤳤��˽񤭤ޤ���
	</div>
</div>

CSS���ɲ�

���˥������륷���Ȥ��ɲä��ơ��쥤�����Ȥ������ޤ���
�����������ɤ򥳥ԡ���������Ǥ��ɤ��Ǥ��������Ȥߤ����򤹤�����Ǥ���С��͡��ʲս�DZ��ѤǤ��ޤ��Τǡ��Ǥ���л��Ȥߤ����򤹤�褦�ˤ��ޤ��礦��

#main .two-column-left{
	width:305px;/*����305px�˸���*/
	float:left;/*����������*/
	padding:10px 5px 10px 5px;/*;������ꤷ�Ƹ��䤹������*/
}
#main .two-column-right{
	width:305px;/*����305px�˸���*/
	float:left;/*����������*/
	padding:10px 5px 10px 5px;/*;������ꤷ�Ƹ��䤹������*/
}

/*------------------------------------------------------------
float�β����ߤ���
-------------------------------------------------------------*/
#main .two-column:after{
	content : '';
	display : block;
	clear : both;
	height:0;
}

��¦�Υ����ȱ�¦�Υ���बƱ������ˤʤäƤ�����ˤ����Ť��Ǥ��礦����

����ϥᥤ�󥳥�ƥ����ʬ�β����Ρ����礦�ɿ�����Ǻ����Υ�������ڤäƤ���Τ�Ʊ������ˤʤäƤ��ޤ�������¦�Υ��������򹭤����Ʊ�¦�Υ����򶹤��������Ȥ��ä����ˤϡ����줾��Υ��������������width�Υԥ�������ˤ��Ѥ��뤳�Ȥ��б��Ǥ��ޤ���

3�����ˤ�������ǽ�Ǥ�

Ʊ���ͤ����ǥ����������ɤ��Ѥ����3�����ˤ�������ǽ�Ǥ��������Υ�������������Ǥϡ�3�ĤΥ�������������֤��Ƥ��ޤ���

HTML���
<div class="three-column">
	<div class="three-column-left">
		<h2>3�����ʺ���</h2>
		��¦�Υ��������륳��ƥ�Ĥ򤳤��˽񤭤ޤ���
	</div>

	<div class="three-column-center">
		<h2>3�����������</h2>
		����Υ��������륳��ƥ�Ĥ򤳤��˽񤭤ޤ���
	</div>

	<div class="three-column-right">
		<h2>3�����ʱ���</h2>
		��¦�Υ��������륳��ƥ�Ĥ򤳤��˽񤭤ޤ���
	</div>
</div>
CSS���
#main .three-column-left{
	float:left;
	width:200px;
	padding:10px 5px 10px 5px;
}
#main .three-column-center{
	float:left;
	width:200px;
	padding:10px 5px 10px 5px;
}
#main .three-column-right{
	float:left;
	width:200px;
	padding:10px 5px 10px 5px;
}
/*------------------------------------------------------------
float�β����ߤ���
-------------------------------------------------------------*/
#main .two-column:after,
#main .three-column:after{
	content : '';
	display : block;
	clear : both;
	height:0;
}

���ޤꥫ���������䤷�Ƥ��ޤ��ȡ��ҤȤĤҤȤĤΥ����β����������ʤ�ޤ��Τǡ������äƾ����ɤߤˤ����ʤäƤ��ޤ����⤢��ޤ���
�����Ϥۤɤۤɤο����ޤ��ƾ����Ǻܤ���褦�ˤ��ޤ��礦��

Facebook�ڡ���