5 글 보임 - 1 에서 5 까지 (총 5 중에서)
-
글쓴이글
-
2024년 2월 25일 00:40 #114292
우재현참가자약 75%정도 축소했을때는 뒤에 배경이 붉은색으로 포함되는데 100%이후부터는 계속해서 하얀공간이 생기네요.. 색을 넣어서 찾으려고 해봤는데.. 전혀 못찾겠어요 ㅜ [75%축소]
[100%확대]
코드 [HTML]
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="portFolio2_SNSprofile.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"> <link href="https://fonts.googleapis.com/css2?family=Anta&display=swap" rel="stylesheet"> <title>Document</title>
</head> <body>
<div class="first-bgbox"> <div style="width: auto; height: 80px;"></div><!--공백용-->
<div class="whitebox-001"> <div class="imgbox01"> < img src="../image/profile-pic.png" alt=""> </div> <div class="profilebox01"> <p style="font-family: anta; margin-bottom: 0; font-size: 30px;">Killan Sven</p> <p style="font-family: anta; margin-bottom: 5px;"> Front-end Designer </p> <p style="color: #53adf7ae; margin-bottom: 5px;"> <i class="fa-solid fa-location-dot" style="color: #53adf7ae;"></i> 서울 마포구</p> Contact </div> <!-- profile box-->
<div class="line001"> </div> <!-- 작대기용 -->
<table style="width: 300px; height: 150px; font-family: anta;"> <tr> <td><p style="font-weight: bold">Location</p></td> <td><p>서울 마포구</p></td> </tr> <tr> <td><p style="font-weight: bold">Age</p></td> <td><p>90년생</p></td> </tr> <tr> <td><p style="font-weight: bold">Experience</p></td> <td><p>신입</p></td> </tr> <tr> <td><p style="font-weight: bold">School</p></td> <td><p>천조국대 토목학과</p></td> </tr> </table> <!-- table 글 -->
</div> <!-- whitebox-001 상단화이트박스001 -->
<div class="menubar-mom"> <div class="menubar">
</div> </div> <!-- menubar감싸주는 memubar-mom--><div class="second-bgbox">
<div class="leftbottom-box"> <p style="font-family: anta; font-size:25px; margin: 0px; padding-left:30px; padding-top: 40px;">WORKS</p> <p style="font-family: anta; margin: 0px; padding: 30px">Landing page Designer<br> Flyer Designer<br> Vue.js To-do app<br> Shopping page design </p> </div>
<div class="middle-box"> <p style="font-family: anta; font-size:25px; margin: 0px; padding-left:30px; padding-top: 40px;">ABOUT</p> <p style="font-family: anta; margin: 0px; padding: 30px;"> I am a front-end designer who is excellent at Bootstrap, Sass, Foundation, I have dealt lots of in-house design works and outsource things. If you want to check my portfoli, please visit Killiansven.com <br><br><br><br> </p>
<div class="line002"> <hr style="opacity: 1; width: 750px; height: 6px; border: none; background-color:#e0e0e0; margin: auto;"> </div>
<p style="font-family: anta; font-size:25px; margin: 0px; padding-left:30px; padding-top: 40px;">SKILLS</p>
<div class="skill-list"> <div class="skill-001">HTML5</div> <div class="skill-002">JavaScript</div> <div class="skill-003">CSS3</div> <div class="skill-004">Illustrator</div> <div class="skill-005">Photoshop</div> </div> </div><!-- middle-box -->
<div class="rightbottom-box"> <div class="bluefire" style="text-align: center; margin-top: 40px;"> <i class="fa-solid fa-fire" style="font-size: 100px; color: #53adf7ae;"></i> </div> <p style="font-size: 20px; text-align: center; margin-top: 20px; font-family: anta;">Find me at Linkedout.com</p> <div style="text-align: center;"> Sign up <p style="font-size: 20px; text-align: center; margin-top: 20px; font-family: anta; color:#53adf7ae ;">Already a member?</p> </div>
<div class="rightbottomofbottom-box"> <p style="margin-top: 100px; font-size: 20px; font-family: anta; margin-left: 20px;">People You Might Know</p> <div class="line002"> <hr style="opacity: 1; width: 280px; height: 6px; border: none; background-color:#e0e0e0; margin-left: 20px;"> </div> </div>
</div><!-- rightbottom-box --> </div> <!-- 아래보이지않는박스 -->
</div> <!-- firs-bgbox 회색박스 --> <script src="https://kit.fontawesome.com/6b9c92e90a.js" crossorigin="anonymous"></script> </body> </html>
[CSS]
/* ■■■■■■■■■■■ 기본세팅 ■■■■■■■■■■■ */ body { margin: 0; }
.anta-regular { font-family: "Anta", sans-serif; font-weight: 400; font-style: normal; }
div {box-sizing: border-box;}
h1 {font-size: 30px;}
h4 {font-size: 22px;}
/* ■■■■■■■■■■■ 상단박스 ■■■■■■■■■■■ */
.first-bgbox { background-size: cover; width: auto; height: 100vh; background-color:#691919; ; }
.whitebox-001 { white-space: nowrap; display: flex; align-items: center; width: 1400px; height: 250px; background-color: rgb(194, 90, 90); margin: auto; border-radius: 10px; box-shadow: 5px 5px #e0e0e0; /* margin-top: 100px; */ }
.imgbox01 { white-space: nowrap; width: 200px; height: 150px; margin-right: 20px; margin-left: 50px; }
.profilebox01 { white-space: nowrap; width: 200px; }
.line001 { white-space: nowrap; width: 300px; margin-left: 150px; margin-right: 100px; border-right: thick solid #d4d4d47a; height: 200px; }
/* ■■■■■■■■■■■ 프로필라인 ■■■■■■■■■■■ */ .menubar-mom { background-color: #ebebeb; width: 1400px; height: 60px; margin: auto; }
.menubar { font-size: 16pt; text-align: left; background-color: #841d1d;; padding: 20px 0 20px 0; margin: 10px; padding-bottom: 0px; }
.menubar li { display: inline-block; padding: 0 40px 0 0; }
.menubar a { font-family: 'anta'; font-weight: 200; color: #61d6f3; text-decoration: none; line-height: 100%; /* margin-left: 170px; */ }
.menubar a:after { display:block; width: 1300px; content: ""; border-bottom: solid 3px #61d6f3; transform: scaleX(0); transition: transform 250ms ease-in-out; /* margin-left: 170px; */ }
.menubar a:focus:after { transform:scaleX(1); }
/* ■■■■■■■■■■■ 아래보이지않는회색박스 ■■■■■■■■■■■ */
.second-bgbox { width: 1400px; height: auto; background-color: #604141; display: flex; margin: auto; }
/* ■■■■■■■■■■■ 왼쪽하단박스 ■■■■■■■■■■■ */
.leftbottom-box { width: 250px; height: 400px; background-color: white; border-radius: 6px; box-shadow: 5px 5px #e0e0e0; margin-right: 20px; }
/* ■■■■■■■■■■■ 중간하단박스 ■■■■■■■■■■■ */
.middle-box { width: 800px; height: 600px; background-color: rgb(192, 121, 121); border-radius: 6px; box-shadow: 5px 5px #e0e0e0; padding: 60px; padding-top: 5px; }
/* ■■■■■■■■■■■ line002 ■■■■■■■■■■■ */
.line002 { display: inline; width: 1000px; height: 10px; margin: 0; }
.skill-list { width: 600px; background-color: rgb(255, 255, 255); display: flex; padding: 30px; padding-left: 10px; text-align: center; }
.skill-001 { margin-left: 20px; width: 80px; /* height: 30px; */ border: 3px solid #e0e0e0; border-radius: 20px; }
.skill-002 { margin-left: 20px; width: 100px; /* height: 30px; */ border: 3px solid #e0e0e0; border-radius: 20px; }
.skill-003 { margin-left: 20px; width: 70px; /* height: 30px; */ border: 3px solid #e0e0e0; border-radius: 20px; }
.skill-004 { margin-left: 20px; width: 100px; /* height: 30px; */ border: 3px solid #e0e0e0; border-radius: 20px; }
.skill-005 { margin-left: 20px; width: 100px; /* height: 30px; */ border: 3px solid #e0e0e0; border-radius: 20px; }
/* ■■■■■■■■■■■ 오른쪽 하단 박스 ■■■■■■■■■■■ */
.rightbottom-box { width: 300px; height: 370px; background-color: rgb(154, 68, 68); border-radius: 6px; box-shadow: 5px 5px #e0e0e0; margin-left: 20px; }
.rightbottomofbottom-box { width: 300px; height: 370px; background-color: rgb(82, 34, 34); }
2024년 2월 25일 16:34 #114334
우재현참가자감사합니다. 그러나 100%에서는 사라진줄 알았는데.. 110%에서는 존재하네요 ㅜ 그래서 뒤에 배경박스를 height: 100vh -> height: 120vh;로 하니 해결은 되었는데. 좀 찝찝합니다 ㅜ
2024년 2월 26일 09:31 #114373
codingapple키 마스터배경색은 body태그에 줘도 됩니다 공백용 박스 넣는거보다는 padding이나 margin 주는게 낫습니다
-
글쓴이글
5 글 보임 - 1 에서 5 까지 (총 5 중에서)
- 답변은 로그인 후 가능합니다.