어떻게 파란색과 검은 색 div가 서로 위에 있지 않고 위에 놓일 수 있습니까? 는 내가 그것을두 div를 서로 옆에 배치하려면 어떻게해야합니까?
#sortboks {
\t align-content: center;
\t color: white;
\t max-width: 8%;
\t padding: 1%;
\t left: 10%;
\t background-color: blue;
\t position: relative;
\t font-size: 15px;
\t box-shadow:0;
\t \t \t
}
#hvidboks {
\t align-content: center;
\t color: white;
\t max-width: 20%;
\t padding: 1%;
\t left: 20%;
\t background-color: #000000;
\t position:relative;
\t font-size: 15px;
\t box-shadow:0;
}
<div id="sortboks">
<p>
<strong>NAME: </strong>
<br><strong>NICK NAME:</strong>
<br><strong>AGE:</strong>
<br><strong>BIRTH:</strong>
<br><strong>CITY:</strong>
<br><strong>EDUCATION:</strong>
<br><strong>LANGUAGE:</strong>
<br><strong>MOTTO:</strong>
<br><strong>FAV.QUOTES:</strong>
<br><strong>CODE EXPERIENCE:</strong>
</p>
</div>
<div id="hvidboks" style="width: 300px; top: 0px;bottom: 0px; ">
<p>
<br>
<br> 22 Year
<br> 11-08-1994
<br> Kolding
<br> Multimediadesigner
<br> Danish - English - Persian - Dari
<br> If you have a dream you gotta protect it no matter what
<br> Dont talk the talk, walk the walk
<br> HTML - CSS
</p>
</div>
너희들은 무엇을 추천 할 수의 옆에 약간의 패딩 왼쪽 모서리에있는 검은 DIV, 청색 DIV의 권리를 원해?
환영합니다. 내 대답을 확인하십시오. 내가 문제를 해결했다면 옳은 대답으로 표시하십시오. http://stackoverflow.com/help/someone-answers –