<div class="switchArea"> <input type="checkbox" id="switch1"> <label for="switch1"><span></span></label> <div id="swImg"></div> </div> <style type="text/css"> /* === ボタンを表示するエリア ============================== */ .switchArea { line-height : 60px; /* 1行の高さ */ letter-spacing : 0; /* 文字間 */ text-align : center; /* 文字位置は中央 */ font-size : 27px; /* 文字サイズ */ position : relative; /* 親要素が基点 */ margin : auto