1) 학습한 내용
네이버 웹툰
<header id="webtoon-header">
<div class="webtoon-header-top">
<div class="webtoon-container">
<div class="webtoon-header-left">
<h2><a href="#">만화</a></h2>
<em class="bar"></em>
<h3><a href="#">웹소설</a></h3>
<div class="webtoon-header-input-wrap">
<input type="text">
<button type="button" class="btn-search"></button>
</div>
</div>
<div class="webtoon-header-right">
<a href="#" class="btn-login">로그인</a>
<button type="button" class="btn-menu"></button>
</div>
</div>
</div>
<div class="webtoon-header-nav">
<div class="webtoon-container">
<nav>
<ul>
<li class="on"><a href="webtoon.html">홈</a></li>
<li><a href="webtoon-detail.html">웹툰</a></li>
<li><a href="#">베스트 도전</a></li>
<li><a href="#">도전만화</a></li>
</ul>
</nav>
<div class="webtoon-header-link-wrap">
<i class="icon-ex-mark"></i>
<a href="#">온천마을 판타지 로맨스 <모락모락 왕세자님></a>
.webtoon-container {
width: 960px;
margin: 0 auto;
}
#webtoon-header .webtoon-header-top {
padding: 10px 0 8px 0;
border-bottom: solid 1px #f2f2f2;
background-color: #ffffff;
}
#webtoon-header .webtoon-header-top .webtoon-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
#webtoon-header .webtoon-header-top .webtoon-header-left {
display: flex;
flex-wrap: wrap;
align-items: center;
width: 550px;
}
#webtoon-header .webtoon-header-top .webtoon-header-left .bar {
width: 1px;
height: 13px;
background-color: #d2d2d2;
margin-left: 8px;
margin-right: 10px;
}
#webtoon-header .webtoon-header-top .webtoon-header-left h3 {
margin-right: 30px;
font-size: 16px;
(color: gray;* 부모태그 컬러보다 자식 컬러가 더 우위에 있음으로 원하는 태그에 직접 표시)
}
#webtoon-header .webtoon-header-top .webtoon-header-left h3 a {
color: grey;
}
#webtoon-header .webtoon-header-top .webtoon-header-input-wrap {
display: flex;
flex-wrap: wrap;
align-items: center;
width: 315px;
height: 37px;
border: solid 1px #e5e5e5;
}
#webtoon-header .webtoon-header-top .webtoon-header-input-wrap input {
width: calc(100% - 35px);
height: 100%;
height: 100%;
border: none;
background-color: yellow;
padding: 0 10px; (검색공간 앞 뒤로 공간 두고 타자쳐짐 )
}
#webtoon-header .webtoon-header-top .webtoon-header-input-wrap input:focus {
outline: none;
}
#webtoon-header .webtoon-header-top .webtoon-header-input-wrap .btn-search {
width: 35px;
height: 100%;
background-color: #00d564;
}
#webtoon-header .webtoon-header-top .webtoon-header-right {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
}
#webtoon-header .webtoon-header-top .webtoon-header-right .btn-login {
border: solid 1px #000000;
padding: 2px 4px;
margin-right: 20px;
font-size: 12px;
}
#webtoon-header .webtoon-header-nav .webtoon-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
#webtoon-header .webtoon-header-nav nav ul {
display: flex;
flex-wrap: wrap;
align-items: center;
}
#webtoon-header .webtoon-header-nav nav ul li {
width: auto;
height: 40px;
}
#webtoon-header .webtoon-header-nav nav ul li a {
display: block;
width: 100%;
height: 100%;
padding: 0 15px;
line-height: 40px;
font-size: 14px;
}
#webtoon-header .webtoon-header-nav .webtoon-header-link-wrap .icon-ex-mark {
(icon은 inlin요소. icon이미지를 background img로 삽입할 때는 i태그에 display: block 또는 inline-block; 삽입해서 공간을 만들어야 함.)
display: inline-block;
width: 16px;
height: 14px;
background-color: #000000;
vertical-align: middle;
}
#webtoon-header .webtoon-header-nav .webtoon-header-link-wrap a {
vertical-align: middle;
font-size: 12px;
color: #606060;
}
#webtoon-header .webtoon-header-nav .webtoon-header-link-wrap a:hover {
(hover: 마우스 올렸을 때)
text-decoration: underline;
}
왼쪽 오른쪽 구역 나눠서 작업.
<div class="webtoon-main-left">
<div class="webtoon-carousel webtoon-border">
<div class="webtoon-carousel-left">
<h2>오늘의<br><span>웹툰</span></h2>
<p>5월 19일 수요일</p>
<ul>
<li class="on"><a href="#">인기순</a></li>
<li><a href="#">업데이트순</a></li>
<li><a href="#">조회순</a></li>
<li><a href="#">별점순</a></li>
</ul>
</div>
<div class="webtoon-carousel-right">
<div class="webtoon-carousel-banner">
<img src="https://via.placeholder.com/582x195">
</div>
<div class="webtoon-carousel-banner-nav">
<ul>
<li><img src="https://via.placeholder.com/135x57"></li>
<li><img src="https://via.placeholder.com/135x57"></li>
</ul>
<a href="#" class="btn btn-prev"></a>
<a href="#" class="btn btn-next"></a
#webtoon-main .webtoon-container {
overflow: hidden; (자식 태그 크기를 위해)
}
#webtoon-main .webtoon-main-left {
float: left;
width: 694px;
height: 2000px;
background-color: yellow;
}
#webtoon-main .webtoon-main-left .webtoon-carousel {
overflow: hidden;
width: 694px;
height: 252px;
background-color: #ffffff;
margin-bottom: 20px;
}
#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-left {
float: left;
width: 112px;
padding: 20px 5px 0 15px;
}
#webtoon-main .webtoon-main-left .webtoon-carousel .webtoon-carousel-right {
float: right;
width: calc(100% - 112px);
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner {
width: 582px;
height: 195px;
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner img {
width: 100%;
height: 100%;
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner-nav {
position: relative;
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner-nav ul {
display: flex;
flex-wrap: wrap;
align-items: center;
width: 540px;
margin: 0 auto;
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner-nav ul li {
width: 135px;
height: 57px;
border-left: solid 1px #e5e5e5;
border-right: solid 1px #e5e5e5;
}
#border 지정하고 난 뒤 꼭 공간 끝에 확인해보기. 필요없는 부분은 none지정
#webtoon-main .webtoon-main-left .webtoon-carousel-banner-nav ul li img {
width: 100%;
height: 100%;
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner-nav .btn {
position: absolute;
width: 20px;
height: 57px;
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner-nav .btn.btn-prev {
left: 0;
top: 0;
background-color: pink;
}
#webtoon-main .webtoon-main-left .webtoon-carousel-banner-nav .btn.btn-next {
right: 0;
top: 0;
background-color: blue;
}
-
#webtoon-main .webtoon-main-left .webtoon-content-col-3 {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
#webtoon-main .webtoon-main-left .webtoon-content-col-3 .webtoon-content-col-type-1 {
width: 210px;
height: 196px;
font-size: 12px;
}
#img태그 p태그 h4태그 margin값 고려해서 지정
장르별 추천웹툰 구성이 공통적으로 활용되는 영역.
(에피소스 옴니버스 스토리를 li로 묶어서 구성)
-
에피소드
-
육가족
pianopia1
육가족의 일상 일기
<div class="webtoon-content-rating">
<div class="star"></div>
<span class="score">9.07</span>
2) 학습내용 중 어려웠던 점
css 개념 부분에서 부족한 점을 제대로 이해하지 않은 상태에서 진도가 계속되니 이런 상태로 지속되면 안 되겠다는 생각이 들었다.
3) 해결 방법
이러한 부분을 해결하기 위해서 확실히 개념을 정확히 잡고 공부를 해야겠다고 다짐햇다
4) 학습소감
어제오늘분을 한꺼번에 들으니 머리가 못 따라가겠어요 이게는 뭐고 저거는 또 뭔지 참..........