ย
์ค๋ฅธ์ชฝ์ ์์นํ๋ side_box๋ฅผ ๋ง๋ค์ด ๋ณด๊ฒ ์ต๋๋ค.
side_box๋ฅผ ์ดํด๋ณด์๋ฉด ํฐ side_box ์์ ํ๋กํ์ ๋ด๋นํ๋ ๋ถ๋ถ๊ณผ ์คํ ๋ฆฌ๋ฅผ ๋ด๋นํ๋ ๋ถ๋ถ, ์ฌ์ฉ์๋ฅผ ์ถ์ฒํ๋ ๋ถ๋ถ์ผ๋ก ๋๋์ด์ ธ ์๋๊ฒ์ ๋ณผ ์ ์์ต๋๋ค.
ย
๋จผ์ ๊ฐ์ฅ ํฐ side_box๋ฅผ ๋ง๋ค์ด ๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
ย
ํ์ผ๋ช
:
index.html
... <div class="contents_box"> ... </div> <div class="side_box"> <div class="user_profile"> <div class="profile_thumb"> <img src="imgs/thumb.jpeg" alt="ํ๋กํ์ฌ์ง"> </div> <div class="detail"> <div class="id m_text">KindTiger</div> <div class="ko_name">์ฌ์ ๋ฒ</div> </div> </div> </div> ...
ย
ํ์ผ๋ช
:
css/style.css
... #main_container .inner{ width: 935px; /* height: 500px; */ /* background: red; */ position: relative; /* ๊ธฐ์ค์ ์ inner๋ก ๋ณ๊ฒฝํ๊ธฐ ์ํจ */ } ... .side_box{ width: 293px; /* height: 300px; */ /* background: rgba(255,0,0,0.16); */ position: absolute; /* ๋ถ๋ชจ๋ฅผ ๊ฐ๋ ๊ธฐ์ค์ ์ ์ก์ง ์์ผ๋ฉด ๊ผญ๋๊ธฐ๊น์ง ์ฌ๋ผ๊ฐ */ right: 0; top: 0; } .side_box .profile_thumb{ width: 50px; height: 50px; border-radius: 50%; overflow: hidden; /* ์ด๋ฏธ์ง๊ฐ ๋์น์ง ์๋๋ก ํ๋ค */ margin-right: 10px; } .side_box .profile_thumb img{ width: 100%; height: 100%; } .side_box .user_profile{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ align-items: center; font-size: 14px; color: #262626; } .side_box .detail .ko_name{ font-size: 12px; color: #999; }
ย
ย
ํ๋กํ์ ์์ฑํ์ผ๋ ์ด์ ์คํ ๋ฆฌ ๋ฐ์ค์ ์ถ์ฒ ๋ฐ์ค๋ฅผ ๋ง๋ค์ด ๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
์คํ ๋ฆฌ ๋ฐ์ค์ ์ถ์ฒ ๋ฐ์ค์ header๊ฐ ๊ฐ๊ณ ์คํ ๋ฆฌ ๋ฐ์ค์์ ๋น์ทํ ํํ๊ฐ ์ค๋ณต๋๋, ์ด๋ฌํ ๊ฒฝ์ฐ์๋ ํด๋์ค๋ฅผ ํตํด์ ํ๋ฒ์ ๊ด๋ฆฌ๋ฅผ ํด์ฃผ๋ ๊ฒ์ด ํธํฉ๋๋ค.
ย
ย
ํ์ผ๋ช
:
index.html
... <div class="side_box"> <div class="user_profile"> <div class="profile_thumb"> <img src="imgs/thumb.jpeg" alt="ํ๋กํ์ฌ์ง"> </div> <div class="detail"> <div class="id m_text">KindTiger</div> <div class="ko_name">์ฌ์ ๋ฒ</div> </div> </div> <article class="story"> <header class="story_header"> <div>์คํ ๋ฆฌ</div> <div class="more">๋ชจ๋ ๋ณด๊ธฐ</div> </header> </article> <article class="recommend"> <header class="reco_header"> <div>ํ์๋์ ์ํ ์ถ์ฒ</div> <div class="more">๋ชจ๋ ๋ณด๊ธฐ</div> </header> </article> </div> ...
ย
ํ์ผ๋ช
:
css/style.css
... .side_box{ width: 293px; /* height: 300px; */ /* background: rgba(255,0,0,0.16); */ position: absolute; /* ๋ถ๋ชจ๋ฅผ ๊ฐ๋ ๊ธฐ์ค์ ์ ์ก์ง ์์ผ๋ฉด ๊ผญ๋๊ธฐ๊น์ง ์ฌ๋ผ๊ฐ */ right: 0; top: 0; } .side_box .profile_thumb{ width: 50px; height: 50px; border-radius: 50%; overflow: hidden; /* ์ด๋ฏธ์ง๊ฐ ๋์น์ง ์๋๋ก ํ๋ค */ margin-right: 10px; } .side_box .profile_thumb img{ width: 100%; height: 100%; } .side_box .user_profile{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ align-items: center; font-size: 14px; color: #262626; } .side_box .detail .ko_name{ font-size: 12px; color: #999; } .side_box > article{ border: 1px solid rgba(0,0,0,0.09); border-radius: 3px; margin-bottom: 20px; width: 291px; font-size: 14px; color: #262626; font-weight: bold; background: white; } .side_box > article > header{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ align-items: center; justify-content: space-between; padding: 15px 20px; color: #999; } .side_box > article > header .more{ font-size: 12px; color: #262626; cursor: pointer; }
ย
ย
์คํ ๋ฆฌ ๋ถ๋ถ์ ์คํฌ๋กค์ด ๊ฐ๋ฅํด์ผํ๊ธฐ ๋๋ฌธ์ ์คํฌ๋กค ํ ์ ์๋ scroll_inner๋ฅผ ์ถ๊ฐํด์ฃผ๋๋ก ํ๊ฒ ์ต๋๋ค. ๋ด๋ถ์ ํ๋กํ๊ณผ ์ธ๋ถ์ ํ๋กํ์ด ์ ์ฌํ์ง๋ง ๋ด๋ถ์ ํ๋กํ์ด ํฌ๊ธฐ๊ฐ ์กฐ๊ธ ๋ ์๋ค๋ ์ ๋ง ์ ์ํด ์ฃผ๋ฉด ๋ฉ๋๋ค.
ย
ํ์ผ๋ช
:
index.html
... <article class="story"> <header class="story_header"> <div>์คํ ๋ฆฌ</div> <div class="more">๋ชจ๋ ๋ณด๊ธฐ</div> </header> <div class="scroll_inner"> <div class="thumb_user"> <div class="profile_thumb"> <img src="imgs/thumb02.jpg" alt="ํ๋กํ์ฌ์ง"> </div> <div class="detail"> <div class="id">kind_tigerrrr</div> <div class="time">1์๊ฐ ์ </div> </div> </div> </div> </article> <article class="recommend"> <header class="reco_header"> <div>ํ์๋์ ์ํ ์ถ์ฒ</div> <div class="more">๋ชจ๋ ๋ณด๊ธฐ</div> </header> </article> ...
ย
ํ์ผ๋ช
:
css/style.css
... .side_box .detail .id{ margin-bottom: 5px; } .side_box .detail .ko_name{ font-size: 12px; color: #999; } .side_box > article{ border: 1px solid rgba(0,0,0,0.09); border-radius: 3px; margin-bottom: 20px; width: 291px; font-size: 14px; color: #262626; font-weight: bold; background: white; } .side_box > article > header{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ align-items: center; justify-content: space-between; padding: 15px 20px; color: #999; } .side_box > article > header .more{ font-size: 12px; color: #262626; cursor: pointer; } .thumb_user{ display: flex; align-items: center; padding: 10px 20px; } .thumb_user .profile_thumb{ width: 34px; /* ํฌ๊ธฐ๊ฐ ์ข ๋ ์๊ฒ ๋ง๋ฌ */ height: 34px; } .thumb_user .time{ font-size: 10px; letter-spacing: 0.2px; color: #999; } .side_box .scroll_inner{ height: 182px; overflow-x: hidden; /* x์ถ_์์์ด ๋ถ๋ชจ ๋์ง ๋ชปํ๊ฒ ํ๋ค */ overflow-y: auto; /* ์๋์ผ๋ก ์คํฌ๋กค์ ๋ณด์ฌ์ฃผ๊ฑฐ๋ ์จ๊น */ /* overflow: hidden auto; x์ถ, y์ถ ํ๋ฒ์ ์ค์ */ }
ย
scroll_inner ๋ถ๋ถ์ ์ฌ๋ฌ๋ฒ ๋ณต์ฌ ๋ถ์ฌ๋ฃ๊ธฐ๋ฅผ ํ์๋ฉด ์๋์ ๊ฐ์ ๊ฒฐ๊ณผ๋ฅผ ๋ณด์ค ์ ์์ต๋๋ค.
ย
์ด๋ ๊ฒ side_box๊น์ง ๋ง๋ค์ด ๋ณด์์ต๋๋ค. ์์ฑ๋ ์ฝ๋๋ ์๋์ ๊ฐ์ต๋๋ค.
ย
ํ์ผ๋ช
:
index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet" href="css/style.css"> <script src="js/main.js"></script> </head> <body> <section id="container"> <header id="header"> <section class="inner"> <h1 class="logo"> <a herf="index.html"> <div class="sprite_insta_icon"></div> <div class="sprite_write_logo"></div> </a> </h1> <div class="search_box"> <input type="text" placeholder="๊ฒ์" id="search-field"> <div class="fake_field"> <span class="sprite_small_search_icon"></span> <span>๊ฒ์</span> </div> </div> <div class="right_icons"> <div class="sprite_camera_icon"></div> <div class="sprite_compass_icon"></div> <div class="sprite_heart_icon_outline"></div> <div class="sprite_user_icon_outline"></div> </div> </section> </header> <section id="main_container"> <div class="inner"> <div class="contents_box"> <article class="contents"> <header class="top"> <div class="user_container"> <div class="profile_img"> <img src="imgs/thumb.jpeg" alt="ํ๋กํ์ด๋ฏธ์ง"> </div> <div class="user_name"> <div class="nick_name m_text">KindTiger</div> <div class="country s_text">Seoul, South Korea</div> </div> </div> <div class="sprite_more_icon" data-name="more"></div> </header> <div class="img_section"> <div class="trans_inner"> <div> <img src="imgs/img_section/img01.jpg" alt="visual01"> </div> </div> </div> <div class="bottom_icons"> <div class="left_icons"> <div class="heart_btn"> <div class="sprite_heart_icon_outline" name="39" data-name="heartbeat"></div> </div> <div class="sprite_bubble_icon"></div> <div class="sprite_share_icon" data-name="share"></div> </div> <div class="right_icon"> <div class="sprite_bookmark_outline" data-name="bookmark"></div> </div> </div> <div class="likes m_text"> ์ข์์ <span id="count">2,346</span> ๊ฐ </div> <div class="comment_container"> <div class="comment"> <div class="nick_name m_text">dongdong2</div> <div>๊ฐ์์ง๊ฐ ๋๋ฌด ๊ท์ฌ์์~!</div> </div> <div class="small_heart"> <div class="sprite_small_heart_icon_outline"></div> </div> </div> <div class="timer">1์๊ฐ ์ </div> <div class="comment_field"> <input type="text" placeholder="๋๊ธ๋ฌ๊ธฐ..."> <div class="upload_btn m_text">๊ฒ์</div> </div> </article> </div> <div class="side_box"> <div class="user_profile"> <div class="profile_thumb"> <img src="imgs/thumb.jpeg" alt="ํ๋กํ์ฌ์ง"> </div> <div class="detail"> <div class="id m_text">KindTiger</div> <div class="ko_name">์ฌ์ ๋ฒ</div> </div> </div> <article class="story"> <header class="story_header"> <div>์คํ ๋ฆฌ</div> <div class="more">๋ชจ๋ ๋ณด๊ธฐ</div> </header> <div class="scroll_inner"> <div class="thumb_user"> <!--**ํ์๊น์ง ๋ฐ๋ณต--> <div class="profile_thumb"> <img src="imgs/thumb02.jpg" alt="ํ๋กํ์ฌ์ง"> </div> <div class="detail"> <div class="id">kind_tigerrrr</div> <div class="time">1์๊ฐ ์ </div> </div> <!--**--> </div> </div> </article> <article class="recommend"> <header class="reco_header"> <div>ํ์๋์ ์ํ ์ถ์ฒ</div> <div class="more">๋ชจ๋ ๋ณด๊ธฐ</div> </header> </article> </div> </div> </section> </section> </body> </html>
ย
ํ์ผ๋ช
:
css/style.css
.sprite_insta_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -53px -235px; width: 22px; height: 22px; } .sprite_write_logo{ display: inline-block; background: url('../imgs/background01.png') no-repeat -94px -72px; width: 103px; height: 29px; } .sprite_compass_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -130px -286px; width: 23px; height: 23px; } .sprite_user_icon_outline{ display: inline-block; background: url('../imgs/background01.png') no-repeat -272px -182px; width: 22px; height: 24px; } .sprite_heart_icon_outline{ display: inline-block; background: url('../imgs/background01.png') no-repeat -52px -261px; width: 24px; height: 22px; } .sprite_small_search_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -337px -246px; width: 10px; height: 10px; } .sprite_more_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -301px -218px; width: 15px; height: 3px; } .sprite_bubble_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -239px -202px; width: 24px; height: 24px; } .sprite_share_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -324px -52px; width: 21px; height: 24px; } .sprite_bookmark_outline{ display: inline-block; background: url('../imgs/background01.png') no-repeat -237px -286px; width: 19px; height: 24px; } .sprite_bookmark_outline.on{ background: url('../imgs/background01.png') no-repeat -159px -286px; width: 19px; height: 24px; } .sprite_small_heart_icon_outline{ display: inline-block; background: url('../imgs/background01.png') no-repeat -323px -274px; width: 12px; height: 11px; } .sprite_camera_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -271px -104px; width: 24px; height: 22px; } .sprite_insta_big_logo{ display: inline-block; background: url('../imgs/background02.png') no-repeat -98px -150px; width: 175px; height: 51px; } .sprite_plus_icon{ display: inline-block; background: url('../imgs/background01.png') no-repeat -187px -202px; width: 23px; height: 23px; } body{ background: #fafafa; } #header{ width: 100%; /* ๊ณต์ค์ ๋จ๊ธฐ ์ํจ */ position: absolute; /* ๊ฐ์ฅ ์์ ์ฌ๋ผ๊ฐ ์์ด์ผ ํ๊ธฐ ์ํจ */ z-index: 999; /* absolute์ ๊ฒฝ์ฐ ์ต์ x์ถ์์ 1๊ฐ y์ถ์์ 1๊ฐ์ ๊ฐ์ ์ฃผ์ด์ผ ํจ */ left: 0; top: 0; background: white; border-bottom: 1px solid rgba(0,0,0,0.1); } #header .inner{ /* inner ์์ ์ปจํ ์ธ ๋ฅผ ๋ฃ์ผ๋ฉด ์์ ๊ฐ์ด ๋ค์ด์ด */ width: 975px; height: 77px; margin: 0 auto; /* ๊ฐ์ด๋ฐ ์ ๋ ฌ */ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ justify-content: space-between; /* x์ถ ์ ๋ ฌ_๊ณต๊ฐ์ ์๋์ผ๋ก ๋ถ๋ฐฐํจ */ align-items: center; /* y์ถ ์ ๋ ฌ */ } #header .inner .logo > a{ color: transparent; /* ๋ฐฐ๊ฒฝ์์ ํฌ๋ช ํ๊ฒ ๋ง๋ฌ */ } #header .inner .logo div{ vertical-align: middle; } #header .inner .logo .sprite_insta_icon{ position: relative; /* after์๊ฒ ์์น ๊ธฐ์ค์ ์ ๋ฌํด์ฃผ๊ธฐ ์ํจ */ margin-right: 30px; } #header .inner .logo .sprite_insta_icon:after{ content: ''; /* ๊ณต๋ฐฑ์ ๋ฐ์์ด */ width: 1px; height: 28px; background: #000; position: absolute; /* ๋ถ๋ชจ๋ฅผ ๊ธฐ์ค์ผ๋ก ์์น๋ฅผ ์ก์ */ right: -15px; top: -4px; } #header .search_box{ position: relative; /* ๊ธฐ์ค์ ์ ์ก๊ณ ๊ฐ๋ก ๋ฐฐ์น */ } #search-field{ width: 185px; height: 28px; background: #fafafa; border: 1px solid #dbdbdb; border-radius: 3px; padding: 3px 30px; /* ์์๋ ์์ชฝ */ color: #999; font-weight: 400; text-align: left; /* ๊ธ์ ์ ๋ ฅ ์ ์ผ์ชฝ๋ถํฐ ๋ณด์ด๋๋ก ํ๊ธฐ ์ํจ */ font-size: 14px; outline: none; /* ํฌ์ปค์ค ํ์ ๋ ๋ํ๋๋ ํ๋์ */ } #search-field::placeholder{ /* ์ฝ๋ก 2๊ฐ(::) - ์์ฑ์ ํ์ */ font-size: 0; /* ํฌ์ปค์ค๊ฐ ๋์ง ์์ ๋ ๊ฒ์ ๊ธ์๊ฐ ๋ณด์ด์ง ์๋๋ก ํ๊ธฐ ์ํจ */ } #search-field:focus::placeholder{ font-size: 14px; /* ํฌ์ปค์ค ๋์์ ๋ ๊ฒ์ ๊ธ์๊ฐ ๋ณด์ด๋๋ก ํ๋ค */ } #header .search_box .fake_field{ position: absolute; /* ๊ฒ์ ์ฐฝ ์์ ๊ธ์๋ฅผ ๋ณด์ด๊ธฐ ์ํจ */ /* ๊ฐ์ด๋ฐ ๋ฐฐ์นํ๋ ๊ณต์ */ left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; /* ๊ฒ์์ ๋๋ ์ ๋์๋ ํฌ์ธํฐ ์ธ์์ด ์ ๋จ */ } /* ๋ฌผ๊ฒฐ(~) - ๊ทผ์ฒ์ ์๋ fake_field */ #search-field:focus~.fake_field > span:nth-child(1){ transform: translateX(-105px); /* ๋๋ณด๊ธฐ๋ฅผ ์ผ์ชฝ์ผ๋ก ์ด๋ */ } #search-field:focus~.fake_field > span:nth-child(2){ display: none; /* ํฌ์ปค์ค ๋์์ ๋ ๊ธ์ ์จ๊ธฐ๊ธฐ */ } #header .right_icons{ width: 132px; /* ๋ถ๋ชจ๊ฐ ์ข์ฐ๊ฐ ๊ณ ์ */ display: flex; justify-content: space-between; /* x์ถ ์ ๋ ฌ_๊ณต๊ฐ์ ์๋์ผ๋ก ๋ถ๋ฐฐํจ */ } #header .inner .logo div:nth-child(2){ transform: translateY(2px); } #header .inner .logo .sprite_insta_icon{ position: relative; /* after์๊ฒ ์์น ๊ธฐ์ค์ ์ ๋ฌํด์ฃผ๊ธฐ ์ํจ */ margin-right: 30px; } #main_container{ padding-top: 130px; display: flex; /* ์ปจํ ์ธ ๊ฐ ๊ฐ์ด๋ฐ์ ์์นํ ์ ์๋๋ก ํจ */ justify-content: center; /* x์ถ ๊ฐ์ด๋ฐ ์ ๋ ฌ */ } #main_container .inner{ width: 935px; /* height: 500px; */ /* background: red; */ position: relative; /* ๊ธฐ์ค์ ์ inner๋ก ๋ณ๊ฒฝํ๊ธฐ ์ํจ */ } .contents_box{ } .contents{ width: 614px; /* height: 500px; */ border: 1px solid rgba(0,0,0,0.09); border-radius: 3px; /* ํ ๋๋ฆฌ๋ฅผ ๋ฅ๊ธ๊ฒ ๋ง๋ฌ */ margin-bottom: 60px; /* ๋ค๋ฅธ contents๋ค์ด ๋ฐ๋ ค์ผ ๋๊ธฐ ๋๋ฌธ์ ์ฌ์ด์ ์ฌ๋ฐฑ์ ์ค๋ค */ background: white; } .contents .top{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ justify-content: space-between; /* x์ถ ์ ๋ ฌ_๊ณต๊ฐ์ ์๋์ผ๋ก ๋ถ๋ฐฐ */ align-items: center; padding: 10px 20px; /* ์์๋ ์์ชฝ */ } .contents .top .profile_img{ width: 32px; height: 32px; border-radius: 50%; /* ํ ๋๋ฆฌ๋ฅผ ๋ฅ๊ธ๊ฒ ์ค์ 50% -> ์์ ํํ */ overflow: hidden; /* ์์์ด ํฌ๊ธฐ๊ฐ ๋์น์ง ์๋๋ก ํ๋ค */ margin-right: 10px; } .contents .top .profile_img img{ width: 100%; /* 100%๊ฐ ์์ ๊ฒฝ์ฐ ์ด๋ฏธ์ง๊ฐ ๋ค์ด๊ฐ์ง ์์ */ } .contents .top .user_container{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ } .m_text{ font-size: 14px; font-weight: bold; } .s_text{ font-size: 12px; } .contents .img_section{ overflow: hidden; /* ์์์ด ๋ถ๋ชจ์ ํฌ๊ธฐ๋ฅผ ๋์ง ์๋๋ก ํ๋ค */ } .contents .img_section img{ width: 100%; /* ๋ถ๋ชจ์ ํฌ๊ธฐ 100%๋ฅผ ๋ฐ๋๋ค */ } .contents .bottom_icons{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ justify-content: space-between; /* x์ถ ์ ๋ ฌ_๊ณต๊ฐ์ ์๋์ผ๋ก ๋ถ๋ฐฐํจ */ align-items: center; /* y์ถ ๊ฐ์ด๋ฐ ์ ๋ ฌ */ padding: 10px 20px; } .contents .bottom_icons .left_icons{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ } .contents .bottom_icons .left_icons > div{ margin-right: 10px; } .contents .likes{ padding: 5px 20px; color: #262626; } .contents .comment_container{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ justify-content: space-between; align-items: center; padding: 5px 20px; } .contents .comment_container .comment{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ font-size: 14px; } .contents .comment_container .comment .nick_name{ margin-right: 10px; /* ์์ด๋์ ๋๊ธ ๊ฐ์ ๊ฑฐ๋ฆฌ ์ค์ */ } .contents .timer{ font-size: 10px; letter-spacing: 0.2px; /* ์๊ฐ ์กฐ์ */ color: #999; border-bottom: 1px solid rgba(0,0,0,0.09); /* ์๋์ชฝ ์ค์ ์ถ๊ฐ */ padding: 10px 20px; } .contents .comment_field{ min-height: 56px; padding: 0 20px; position: relative; /* ์์๋ค์ด absolute๋ก ์๋ฆฌ๋ฅผ ์ก๊ธฐ ์ํจ */ } .contents .comment_field input{ width: 100%; height: 56px; border: none; outline: none; background: transparent; /* ํฌ๋ช ํ๊ฒ ์ค์ */ } .contents .comment_field input:focus ~ .upload_btn{ pointer-events: initial; /* ํฌ์ธํฐ ์ด๋ฒคํธ ์ด๊ธฐํ */ opacity: 1; } .contents .comment_field .upload_btn{ color: #3897f0; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); /* y์ถ์ผ๋ก ์ค์ ์ ๋ ฌ */ cursor: pointer; pointer-events: none; /* ์ฒ์์๋ ํด๋ฆญ์ด ๋์ง ์๋๋ก ํ๋ค */ opacity: 0.6; } .contents .bottom_icons .right_icon > div{ cursor: pointer; /* ๋๋ฅผ ์ ์๋๋ก ํ๊ธฐ ์ํจ */ } .side_box{ width: 293px; /* height: 300px; */ /* background: rgba(255,0,0,0.16); */ position: absolute; /* ๋ถ๋ชจ๋ฅผ ๊ฐ๋ ๊ธฐ์ค์ ์ ์ก์ง ์์ผ๋ฉด ๊ผญ๋๊ธฐ๊น์ง ์ฌ๋ผ๊ฐ */ right: 0; top: 0; } .side_box .profile_thumb{ width: 50px; height: 50px; border-radius: 50%; overflow: hidden; /* ์ด๋ฏธ์ง๊ฐ ๋์น์ง ์๋๋ก ํ๋ค */ margin-right: 10px; } .side_box .profile_thumb img{ width: 100%; height: 100%; } .side_box .user_profile{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ align-items: center; font-size: 14px; color: #262626; } .side_box .detail .id{ margin-bottom: 5px; } .side_box .detail .ko_name{ font-size: 12px; color: #999; } .side_box > article{ border: 1px solid rgba(0,0,0,0.09); border-radius: 3px; margin-bottom: 20px; width: 291px; font-size: 14px; color: #262626; font-weight: bold; background: white; } .side_box > article > header{ display: flex; /* ๊ฐ๋ก ๋ฐฐ์น */ align-items: center; justify-content: space-between; padding: 15px 20px; color: #999; } .side_box > article > header .more{ font-size: 12px; color: #262626; cursor: pointer; } .thumb_user{ display: flex; align-items: center; padding: 10px 20px; } .thumb_user .profile_thumb{ width: 34px; /* ํฌ๊ธฐ๊ฐ ์ข ๋ ์๊ฒ ๋ง๋ฌ */ height: 34px; } .thumb_user .time{ font-size: 10px; letter-spacing: 0.2px; color: #999; } .side_box .scroll_inner{ height: 182px; overflow-x: hidden; /* x์ถ_์์์ด ๋ถ๋ชจ ๋์ง ๋ชปํ๊ฒ ํ๋ค */ overflow-y: auto; /* ์๋์ผ๋ก ์คํฌ๋กค์ ๋ณด์ฌ์ฃผ๊ฑฐ๋ ์จ๊น */ /* overflow: hidden auto; x์ถ, y์ถ ํ๋ฒ์ ์ค์ */ }
ย