tableの上の部分に空白が100px欲しいのですが、margin-topと書いても何も反映されません。
リロードすると、画面が一瞬切り替わるのですが、空白は増えません。
何が問題なのでしょうか?教えて頂けたらありがたいです。よろしくお願いします。
###該当のソースコード
HTML
1<!DOCTYPE html> 2<html lang="ja"> 3<head> 4 <meta charset="UTF-8"> 5 <title></title> 6 <link rel="stylesheet" type="text/css" href="style.css"> 7 8</head> 9<body> 10 <div class="header"> 11 12 </div> 13 14 <div class="main" id="main"> 15 16 <div class="whole-photo"> 17 <div id="photo01" class="photoframe"> 18 19 <p class="photo"><img src=""></p> 20 21 <p class="in"></p> 22 23 </div> 24 25 26 <div class="note"> 27 <div class="letters"> 28 <p></p> 29 <p></p> 30 </div> 31 32 </div> 33 34 35 <table class="days"> 36 <tr> 37 <td>1人</td> 38 <td>2人</td> 39 <td>3人</td> 40 <td>4人</td> 41 <td>5人</td> 42 <tr> 43 44 <td><img src="pic1.png"></td> 45 <td><img src="pic2.png"></td> 46 <td><img src="pic3.png"></td> 47 <td><img src="pic4.png"></td> 48 <td><img src="pic5.png"></td> 49 50 </tr> 51 </table> 52 53 54 55 56 57 58 <div class="push"></div> 59 </div> 60 61 62 63 64 65 <div class="footer" id="footer"> 66</div> 67 68</body> 69</html>
CSS
1 2body{ 3 width: 100%; 4 margin: 0px; 5 padding: 0px; 6 background-color:white; 7 8 9} 10 11 12 13 14 15 16.main{ 17 width: 100%; 18 height: 1000px; 19 padding: 100px 0px; 20 margin: 0px; 21} 22 23 24.whole-photo{ 25 margin-left:70px; 26 margin-top: 50px; 27 position:relative; 28} 29 30 31 32.photoframe { 33 position: relative; 34 display: inline; 35 float: left; 36 width: 340px; 37 height: 430px; 38 overflow: hidden; 39 margin: 0 10px 20px; 40 padding: 15px; 41 background: #ffffff; 42 border: 1px solid rgba(0, 0, 0, 0.3); 43 text-align: center; 44 -webkit-border-radius: 2px; 45 -moz-border-radius: 2px; 46 border-radius: 2px; 47 -moz-box-shadow: 0px 2px 4px rgba(0,0,0,0.5); 48 -webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.5); 49 box-shadow: 0px 2px 4px rgba(0,0,0,0.5); 50 z-index: 1; 51} 52 53.photoframe .photo { 54 width: 340px; 55 height: 385px; 56 overflow: hidden; 57 margin: 0 0 10px; 58 padding: 0; 59 -moz-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2); 60 -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2); 61 box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2); 62} 63 64.photoframe img { 65 position: relative; 66 display: block; 67 margin: 0; 68 padding: 0; 69 z-index: -1; 70 width:339px; 71 height:359px; 72} 73 74 75.note{ 76 width:390px; 77 height:460px; 78 float:right; 79 margin-right:160px; 80 position: relative; 81 background-color: #ffffe7; 82 background-image: 83 linear-gradient(rgba(241,207,164,0.5) .1em, transparent .1em); 84 background-size: 100% 1.5em; 85 line-height:1.5em;} 86 87 88.in{ 89 padding-bottom: 20px; 90 font-size: 28px; 91 margin-top: 5px; 92 93} 94 95 96.letters{ 97 padding-top:10px; 98 padding-left:20px; 99 padding-right:20px; 100 font-size:28px; 101 line-height:130%; 102} 103 104 105.days{ 106 text-align: center; 107 border:1px solid black; 108 font-size:22px; 109 margin-top:100px; 110 111 112} 113 114.days img{ 115 width:200px; 116} 117 118
回答1件
あなたの回答
tips
プレビュー