동일한 문제가 있습니다. 내가 회사 등록이 상단에 정렬 할표 셀 div에서 위쪽 패딩 제거
:
.mainDiv {
border-spacing: 15px;
}
.formDiv {
width: 300px;
background-color: #F5F6CE;
padding: 10px;
margin-left: 20px;
display: table-cell;
vertical-align: top;
}
.resultDiv {
background-color: #F5F6CE;
padding: 20px;
box-shadow: 5px 5px 5px #888888;
margin-left: 20px;
display: table-cell;
width: 100%;
}
는 지금, 나는 결과 formDiv
에 <h1>
을 추가 할 수 있습니다.
vertical-align: top;
을하지만 나를 위해 작동하지 않습니다. 도와주세요.
HTML은 다음과 같습니다
<div class="mainDiv">
<div class="formDiv" align="center">
<h1 align="center">Company Registration</h1>
<form id="compReg" onsubmit="SaveData();return false;">
<Table align="center" cellspacing="5px">
<tr>
<td>
<Input id="txtEmail" type="email" class="text" placeholder="Contact Email" />
</td>
</tr>
<!-- other input types -->
<tr>
<td>
<Input type="submit" value="Submit" />
<Input type="reset"/>
</td>
</tr>
</table>
</form>
</div>
<div class="resultDiv" id="result">
<div align="right">
<input type="button" onclick="clearData()" value="Clear" />
<br>
<br>
</div>
<table class="dataTable" width="300">
<thead>
<th width="20px">Id</th>
<th width="250px">Email</th>
<!-- other headers -->
<th width="50px">Color</th>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
</div>
체크 JSFiddle 내가 "문제"H1은 왼쪽 사업부의 상단에 정렬하고 싶습니다.
무슨 문제가 있습니까? 바이올린을 추가 할 수 없습니까? – Chris
최소한의 예를 게시하십시오. (즉, 마크 업) – jbutler483
HTML을 게시 할 수 있습니까? – clami219