나는 다음과 같은 코드를 성공하지 않고 몇 시간 동안 작동 시키려고 노력해 왔습니다. 프로젝트가 중앙에 오도록 도와 주시겠습니까? (페이지가 확대/축소 될 때에도)? 여기 상대 div를 중심에 배치하는 방법?
내 HTML & CSS입니다 :#bottom {
\t position: absolute;
\t top: 100%;
\t left: 0;
\t right: 0;
\t background-color: #FFF;}
\t
#secondsection {
\t background-size: 100% auto;
\t background-size: cover;
\t color: #eaeaf0;
\t margin-left: 7%;
\t margin-right: 7%;
\t padding-top: 35px;
\t padding-bottom: 35px;
\t position: relative;}
#ss_top {
\t width: 100%;
\t height: 100%;}
.ss_title {
\t display: inline;
\t float:left;
\t color: #000000;
\t font-family: 'Eurostile';
\t font-size: 35px;
\t text-transform: uppercase;}
.ss_title2 {
\t color: #a5a5a5;}
#gallerybutton {
\t position: relative;
\t display: inline;
\t float: right;
\t margin-right: 0%;
margin-top: 50px;
padding: 20px;
background-color: #000;
text-decoration: none;
border: none;
color: #FFF;
text-transform: uppercase;}
#projects {
\t position: relative;
\t margin-left: auto;
\t margin-right: auto;
\t max-width: 2000px;
\t padding: 175px 0px 0px 0px;}
#pr_one, #pr_two {
\t display: block;}
.pr_img {
\t float: left;
\t display: inline;
\t margin-right: 1%;
\t margin-bottom: 1%;}
#viewprofilebutton {
\t position: relative;
left: -75px;
margin-left: 50%;
margin-top: 3.5%;
margin-bottom: 2.5%;
padding: 20px;
background-color: #000;
text-decoration: none;
border: none;
color: #FFF;
text-transform: uppercase;}
<div id="secondsection">
\t \t \t \t \t
\t <div id="ss_top">
\t \t <p class="ss_title">A selection of projects<br /><span class="ss_title2">I've worked on lately</span></p>
\t \t \t <button type="button" id="gallerybutton">See everything</button>
\t </div>
\t <div id="projects">
\t <div id="pr_one">
\t \t <div class="pr_img"><a target="_blank" href=""><img src="images/pr_nfs.jpg" alt="" width="488px" height="272px"></a></div>
\t <div class="pr_img"><a target="_blank" href=""><img src="images/pr_nfs.jpg" alt="" width="488px" height="272px"></a></div>
<div class="pr_img"><a target="_blank" href=""><img src="images/pr_nfs.jpg" alt="" width="488px" height="272px"></a></div>
\t </div>
\t <div id="pr_two">
\t \t <div class="pr_img"><a target="_blank" href=""><img src="images/pr_nfs.jpg" alt="" width="488px" height="272px"></a></div>
\t \t <div class="pr_img"><a target="_blank" href=""><img src="images/pr_nfs.jpg" alt="" width="488px" height="272px"></a></div>
\t <div class="pr_img"><a target="_blank" href=""><img src="images/pr_nfs.jpg" alt="" width="488px" height="272px"></a></div>
\t </div>
\t </div>
\t <a href="#thirdsection"><button type="button" id="viewprofilebutton">See my work</button></a>
</div>
어떻게 당신이 당신의 이미지가 표시 넓은 세 가지 이미지의 두 행 하시겠습니까? 그렇다면 페이지 크기는 약 3x488 픽셀이됩니다. 제발 좀 더 자세히 설명해주세요. –
글쎄, 가능한 한 작은 화면에는 2 열, 큰 화면에는 3 열을 사용하고 싶습니다.요점은 내가 안으로 또는 밖으로 스크롤해도 프로젝트 div는 화면의 왼쪽에 붙어 있다는 것입니다 ... – Levano