Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
과제
<title>sunrin</title> <style> *, *::after, *::before{ margin: 0; padding: 0; box-sizing: border-box; } body>*:not(footer) { width: 950px; margin: 0 auto; } header { display: flex; justify-content: space-between; } nav{ display: flex; width: 100%; } nav>ul{ width: 100%; display: flex; list-style: none; } nav>ul>li{ flex: 1; } nav>ul>li>ul{ display: none; } nav>ul>li>a{ display: inline-block; width: 100%; color: #555; text-decoration: none; font-size: 16px; line-height: 60px; letter-spacing: -1px; font-weight: 600; text-align: center; } main{ display: grid; /*grid-template-rows: 315px 315px 320px;*/ /*grid-template-columns: 305px 305px 480px;*/ grid-template-areas: "banner banner notice1" "banner banner notice2" "calendar menu ad"; } #banner { grid-area: banner; } #notice1 { grid-area: notice1; } #notice2 { grid-area: notice2; } #calendar { grid-area: calendar; } #menu { grid-area: menu; } #ad { grid-area: ad; } footer{ display: flex; background-color: #E5E6E8; width: 100%; justify-content: center; } footer > div { display: flex; width: 950px; margin: 0 auto; } #menu li { /*날짜들 사이에 선 긋기*/ list-style: none; padding-bottom: 10px; /*날짜랑 선 사이의 간격 지정*/ border-bottom: 1px solid #cfcfcf; } #menu> h1 { /*오늘의 메뉴랑 + 붙인거 space-between으로 +가 넘어간 것을 nowrap으로 컨테이너 안으로 집어넣음*/ display: flex; justify-content: space-between; flex-wrap: nowrap; } .open > div:nth-child(2){ /*메뉴 없애기*/ display: none; } .open > div>span:nth-child(2){ /*아래를 보는 화살표 없애기*/ display:none; } #menu li:hover>div>span:nth-child(2){ /*호버했을 때 색 바뀌기*/ color:orange; } .open:hover>div>span:nth-child(3){ /*호버했을 때 위를 보는 화살표 없애기*/ display: none; } .open:hover>div>span:nth-child(2){ /*호버했을 때 아래를 보는 화살표 띄우기*/ display: inline; } #menu>div>ul>li>div:first-child { /*날짜와 화살표 거리두기*/ display: flex; justify-content: space-between; } </style>공지/행사
가정 통신문
이달의 일정
09
오늘의 급식+