Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.css #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

2.css #2

wants to merge 3 commits into from

Conversation

wjdrmswn0507
Copy link

과제

<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>

사이트맵 홈 로그인 회원가입

공지/행사

  • 공지사항 1 - 어쩌구 저쩌구... New 2021-06-04
  • 공지사항 2 - 어쩌구 저쩌구... New 2021-05-28
  • 공지사항 3 - 어쩌구 저쩌구... New 2021-05-24
  • 공지사항 4 - 어쩌구 저쩌구... New 2021-05-21

가정 통신문

  • 가정통신 1 - 어쩌구 저쩌구... New 2021-06-04
  • 가정통신 2 - 어쩌구 저쩌구... New 2021-05-28
  • 가정통신 3 - 어쩌구 저쩌구... New 2021-05-26
  • 가정통신 4 - 어쩌구 저쩌구... New 2021-05-23

이달의 일정

2021-06.

09

+
일정이 존재하지 않습니다.

오늘의 급식
+

  • 2021.06.09
    고추참치덮밥 뿌링클치즈소떡 브로콜리땅콩무침 계란후라이 깍두기 트로피카에이드(망고,복숭아) (추가찬)된장국
  • 2021.06.10
  • 2021.06.11
[04314]서울 용산구 원효로97길 33-4 (청파동3가, 선린인터넷고등학교)
대표전화) 02-713-6211
팩스) 02-704-0960
Copyright COPYRIGHT(C) SUNRIN INTERNET HIGHSCHOOL. ALL RIGHT RESERVED.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants