- E:target 가상선택자 (E = 참조된 url의 대상 요소)
요소의 id - url의 # 같을 때 사용 가능
url 클릭 시 대상 요소에 효과 적용
ex. a 태그 클릭시 div에 효과 적용
<a href="#one">menu1</a>
<div id="one">menu1...</div>
- counter-increment 숫자 매기기 ( https://northpard.tistory.com/206 참고 )
counter-reset : 카운터를 생성하거나 초기화
counter-increment : 카운터 값을 하나씩 증가
content : 생성된 카운터 삽입
counter() 또는 counters() 함수 : 카운터의 값을 태그에 추가
ex.
h3.test::before {
counter-increment: section;
content: "Section " counter(section) ". "; => Section 1.
}
h4::before {
counter-increment: subsection;
content: counter(section) "." counter(subsection) " "; => Section 1.1
}
- index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
|
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="hk"> <!-- 제작자 정보 -->
<meta name="keywords" content="webcafe, 웹접근성"> <!-- 페이지 키워드 -->
<meta name="description" content="html5 css3 소개"> <!-- 페이지 설명 -->
<meta name="robots" content="all">
<link rel="shortcut icon" href="images/common/webcafe.ico">
<title>webcafe</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/common.css">
</head>
<body>
<!-- 건너뛰기 링크 시작 (웹 접근성)-->
<a id="skipNav" href="#contentsArea">본문 바로가기</a>
<!-- 건너뛰기 링크 종료 -->
<!-- wrapper 영역 시작 -->
<div id="wrapper">
<!-- 헤더 영역 시작 (로고, 메인메뉴) -->
<header>
<h1 class="logo">
<a href="index.html">
<img src="images/logo.png" alt="">
</a>
</h1>
<ul class="infoLink">
<li><a href="index.html">홈</a></li> <!-- 링크 모음이므로 nav 이용 X -->
<li><a href="#">로그인</a></li>
<li><a href="join.html">회원가입</a></li>
<li><a href="#">사이트맵</a></li>
<li><a href="#">ENGLISH</a></li>
</ul>
<nav role="navigation"> <!-- role: (웹 접근성) 구조 정보 전달 -->
<h2 class="hidden">메인 메뉴</h2> <!-- hidden 클래스 모두 숨기기 예정 -->
<ul class="mainMenu">
<li><a href="#">HTML에 대해</a>
<ul class="aboutHTML">
<li><a href="#">HTML5 소개</a></li>
<li><a href="#">레퍼런스 소개</a></li>
<li><a href="#">활용 예제</a></li>
</ul>
</li>
<li><a href="#">CSS에 대해</a>
<ul class="aboutCSS">
<li><a href="#">CSS 소개</a></li>
<li><a href="#">CSS2 VS CSS3</a></li>
<li><a href="#">CSS 애니메이션</a></li>
<li><a href="#">CSS Framework</a></li>
</ul>
</li>
<li><a href="#">웹 표준</a>
<ul class="webStandard">
<li><a href="#">웹 표준이란</a></li>
<li><a href="#">W3C</a></li>
<li><a href="#">HTML5의 현재와 미래</a></li>
</ul>
</li>
<li><a href="#">웹 접근성</a>
<ul class="webAccessibility">
<li><a href="#">웹 접근성의 개요</a></li>
<li><a href="#">장애 환경의 이해</a></li>
<li><a href="#">장차법</a></li>
<li><a href="#">웹 접근성 품질마크</a></li>
</ul>
</li>
<li><a href="#">묻고 답하기</a>
<ul class="qna">
<li><a href="#">묻고 답하기</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">1대1 질문</a></li>
<li><a href="#">웹표준</a></li>
<li><a href="#">웹접근성</a></li>
</ul>
</li>
<li><a href="#">자료실</a>
<ul class="archive">
<li><a href="#">공개 자료실</a></li>
<li><a href="#">이미지 자료실</a></li>
<li><a href="#">웹표준 자료실</a></li>
<li><a href="#">웹접근성 자료실</a></li>
</ul>
</li>
</ul>
</nav>
</header>
<!-- 헤더 영역 종료 -->
<!-- 비주얼 영역 시작 (이미지)-->
<div id="visual">
<p>Web Standard & Accessibility</p>
</div>
<!-- 비주얼 영역 종료 -->
<!-- 메인 콘텐츠 영역 시작 -->
<div id="contentsArea">
<!-- 로그인/배너/용어설명 시작 -->
<div id="usefulArea">
<section class="login">
<h2>로그인</h2>
<form action="login.jsp" method="post" id="loginForm" name="loginForm"> <!-- 서버로 전송할 파일 -->
<fieldset>
<legend>회원 로그인 폼</legend> <!-- 숨기기 예정 -->
<p>
<label for="userId">아이디</label>
<input type="text" id="userId" name="userId" placeholder="Guest" required>
</p>
<p>
<label for="userPw">비밀번호</label>
<input type="text" id="userPw" name="userPw" placeholder="4자이상 8자이하" required>
</p>
<button type="submit">로그인</button> <!-- 디자인 위해 input 대신 button -->
</fieldset>
</form>
<div class="memberLink">
<a href="join.html" class="join">회원가입</a>
<a href="#" class="find">아이디/비밀번호 찾기</a>
</div>
</section>
<section class="validation">
<h2 class="hidden">유효성 검사</h2>
<ul >
<li>
<a href="http://validator.w3.org" title="마크업 유효성 검사 사이트로 이동" target="_blank">
W3C Markup Validation</a>
</li>
<li>
<a href="http://jigsaw.w3.org/css-validator/"
title="CSS 유효성 검사 사이트로 이동" target="_blank">
W3C CSS Validation Service</a>
</li>
</ul>
</section>
<section class="term">
<h2>웹 관련 용어</h2>
<a href="#"> <!-- 내용 전체 링크 -->
<dl>
<dt>웹 표준이란?</dt>
<dd><img src="images/web_standards.gif" alt="W3C로고" width="61" height="68"></dd>
<dd>W3C 단체에서 규정한 웹 기술 사양에 대한 규칙을 말하며
표준 규격은..
</dd>
</dl>
</a>
</section>
</div> <!-- //usefulArea -->
<!-- 로그인/배너/용어설명 종료 -->
<!-- 검색폼/공지사항/자료실/새소식 시작 -->
<div id="infoArea">
<section class="search">
<h2 class="hidden">웹 카페 검색</h2>
<form action="search.jsp" method="get" id="searchForm" name="searchForm">
<fieldset>
<legend>검색 폼</legend>
<label for="keyword">자료 검색</label>
<input type="search" id= "keyword" name="keyword" placeholder="검색어를 입력하세요" required>
<button type="submit">검색</button>
</fieldset>
</form>
</section>
<div class="board">
<section id="notice">
<h2><a href="#notice">공지사항</a></h2>
<ul>
<li>
<a href="#">HTML의 모든 것을 알려주마 샘플 활용법</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">W3C 사이트 리뉴얼 소식 및 공지사항</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">KWCAG2.0 소식</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">서버 점검으로 인한 사이트 이용 안내입니다.</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">여러분들이 생각하는 웹 접근성에 대해 이야기를 나누어 봅시다.</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
</ul>
<a href="#" class="more" title="공지사항 더보기">더보기</a>
</section>
<section id="pds">
<h2><a href="#pds">자료실</a></h2>
<ul>
<li>
<a href="#">디자인 사이트 링크 모음</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">웹 접근성 관련 자료 모음</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">예제 샘플 응용해보기</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">웹 접근성 향상을 위한 국가 표준 기술 가이드라인</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
<li>
<a href="#">로얄티 프리 이미지 자료</a>
<time datetime = "2013-10-04">2013.10.04</time>
</li>
</ul>
<a href="#" class="more" title="자료실 더보기">더보기</a>
</section>
</div>
<section class="news">
<h2>새소식</h2>
<article>
<a href="#">
<h3>W3C 사이트가 리뉴얼되었습니다.</h3>
<time datetime="2013-10-04">2013.10.04</time>
<p>디자인 및 다양한 view 환경을 고려하여 구성돼 있으며
기존보다 최신 정보 및 개발자를 위한 가이드도 찾기 쉽도록 구성되어 있습니다.
</p>
<figure>
<img src="images/news.gif" alt="news" width="112" height="66">
<figcaption>W3C 리뉴얼</figcaption>
</figure>
</a>
</article>
<a href="#" class="more" title="새소식 더보기">더보기</a>
</section>
</div> <!-- //infoArea -->
<!-- 검색폼/공지사항/자료실/새소식 종료 -->
<!-- 신규이벤트/관련사이트/인기사이트 시작 -->
<div id="linkArea">
<div class="eventRelatedArea">
<section class="event">
<h2>신규<span>이벤트</span></h2>
<div id="eventDetail">
<a href="">
<img src="images/free_gift.gif" alt="이벤트 경품: 웹표준 핵심 가이드 북 2"
width="163" height="77">
<p><em>웹표준 핵심 가이드북 2 출시</em>선착순 400명 한정!</p>
</a>
</div>
<div class="btnEventArea">
<a href="#" class="btnEventPrev">이전 이벤트보기</a>
<a href="#" class="btnEventNext">다음 이벤트보기</a>
</div>
</section>
<section class="relatedLink">
<h2>관련<span>사이트</span></h2>
<ul>
<li><a href="http://jeumedia.com">제우미디어</a></li>
<li><a href="http://www.w3c.org">W3C</a></li>
<li><a href="http://www.csszengarden.com">CSS ZEN GARDEN</a></li>
<li><a href="http://www.webstandards.org">WEB STANDARD</a></li>
<li><a href="http://www.wah.or.kr">웹 접근성 연구소</a></li>
</ul>
</section>
</div>
<section class="hotLink">
<h2>인기<span>사이트</span></h2>
<ol>
<li class="no1">
<a href="#">w3C</a>
<em class="up">상승</em>
</li>
<li class="no2">
<a href="#">CSS Zengarden</a>
<em class="up">하락</em>
</li>
<li class="no3">
<a href="#">Web Standards</a>
<em class="up">유지</em>
</li>
<li class="no4">
<a href="#">웹접근성 연구소</a>
<em class="up">상승</em>
</li>
</ol>
<a href="#" class="more" title="인기사이트 더보기">더보기</a>
</section>
</div> <!-- //linkArea -->
<!-- 신규이벤트/관련사이트/인기사이트 종료 -->
</div>
<!-- 메인 콘텐츠 영역 종료 -->
<!-- 슬로건 영역 시작 -->
<div id="slogan">
<h2>Web Cafe 슬로건</h2>
<p>
<q cite="http://www.w3.org/WAI/">The power of the Web
is in its universality, Access by everyone regardless
of disability is an essential aspect.</q>
Tim Berners-Lee, W3C Director and Invertor of the World Wide Web.
</p>
<footer class="hidden"> <!-- 출처 명시용 -->
출처: World Wide Web Consortium - http://w3.org/WAI/
</footer>
</div>
<!-- 슬로건 영역 종료 -->
<!-- 푸터 영역 시작 -->
<footer id="footer">
<div id="footerInner">
<a href="#" class="footerLogo">
<img src="images/footer_logo.png" alt="WebCafe">
</a>
<a href="#" class="techLogoArea">
<img src="images/html5_logo.png" alt="">
<img src="images/css3_logo.png" alt="">
</a>
<section class="guide">
<h2 class="hidden">사이트 이용안내</h2>
<ul>
<li><a href="#">회사소개</a></li>
<li><a href="#">개인정보 보호정책</a></li>
<li><a href="#">이메일 주소 무단 수집거부</a></li>
<li><a href="#">contact us</a></li>
<li><a href="#">site map</a></li>
</ul>
</section>
<address>
<span>서울시 마포구 상수동 123-12 한주빌딩 5층</span>
<span>· 전화: 02-234-5678</span>
<span>· E-MAIL: <a href="mailto:webmaster@webcafe.com">
webmaster@webcafe.com
</a></span>
</address>
<p class="copyright">
Copyright since © 2010 by Web Cafe
</p>
</div>
</footer>
<!-- 푸터 영역 종료 -->
</div>
<!-- wrapper 영역 종료 -->
</body>
</html>
|
cs |
- index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
|
@charset "utf-8";
/* 메인 콘텐츠 상세 */
/* usefulArea 영역 시작 */
#usefulArea{
width: 250px; /*960px에 맞춰 계산*/
margin-right: 30px;
}
/* 로그인 영역 */
.login{
background-image: radial-gradient(circle at top right,
#ffc848,#ff8208);
border-radius: 5px;
padding: 10px;
box-shadow: -1px -1px 5px rgba(0, 0, 0, 0.2);
/* 우 하 번짐 색 */
}
.login>h2{
color: #feff9a;
font-size: 1.2em;
padding: 0 0 10px 10px;
}
.login form{
background-color: #fff;
position: relative;
border-radius: 3px 3px 0 0;
padding: 10px 10px 0 10px;
}
.login label{
display: inline-block; /*inline에서 변경*/
width: 48px;
}
.login input{
width: 93px;
height: 18px;
padding-left:1px 1px 1px 4px;
border: 1px solid #ccc; /*기본값 black*/
}
#userId{
margin-bottom: 6px;
}
.login button{
position: absolute;
top: 10px;
right: 10px;
width: 50px;
height: 50px;
color: #fff;
font-weight: bold;
font-size: 0.9em;
border: #ccc;
background-color: #ff4200;
border-radius: 3px;
background-image: linear-gradient(to bottom, #fe5f18 0%,
#fa4306 100%);
}
.login fieldset{
border-bottom: 1px solid #ccc;
padding: 0 0 10px 0;
}
.memberLink{
background-color: #fff;
border-radius: 0 0 3px 3px;
padding: 0 10px;
overflow: hidden; /*join, find의 float에 대응*/
}
.memberLink a::before{
font-family: "webcafeIcon";
content: "g";
color: #fa3d00;
margin-right: 3px;
position: relative;
top: 2px;
}
.join{
float: left;
padding: 10px 0;
}
.find{
float: right;
padding: 10px 0;
}
/* 유효성 검사 영역 */
.validation{
margin-top: 20px;
}
.validation li{
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 20px;
background-image: linear-gradient(to bottom, #fff 0%, #ebebeb 100%);
}
.validation a {
display: block;
height: 30px;
color: #9c9c9c;
font-weight: bold;
line-height:30px;
background: url(images/validation_icon.png) no-repeat 20px 5px;
background-size: 20px 20px;
text-indent: 45px;
}
/* 용어 영역 */
.term{
margin-top: 20px;
border: 1px solid #ccc;
border-radius: 5px;
padding: 15px 20px;
background-image: linear-gradient(to bottom, #fff 0%, #f4f4f4 100%);
position: relative;
}
.term>h2{
font-size: 1.2em;
}
.term dl{
margin-top: 15px;
overflow: hidden;
}
.term dt{
float: right;
width: 130px;
margin-bottom: 5px;
color: #296897;
font-weight: bold;
}
.term dd:nth-of-type(1){
float: left;
}
.term dd:nth-of-type(2){
float: right;
width: 130px;
line-height: 1.45;
text-align: justify;
}
/* usefulArea 영역 종료 */
/* infoArea 영역 시작 */
/* 검색 영역 */
#infoArea{
width: 390px;
margin-right: 30px;
}
#infoArea .search{
text-align: center;
background-image: linear-gradient(to bottom,
#ddd 0%, #f8f8f8 50%, #fff 100%);
border-radius: 15px 15px 0 0;
padding: 10px 15px 0 15px;
}
.search label{
padding: 2px 0 4px 2px;
font-weight: bold;
color: #999;
}
.search label::before{
font-family: webcafeIcon;
content: "z";
font-size: 1.5em;
color: #7d7d7d;
position: relative;
top: 5px;
margin-right: 5px;
}
.search input {
width: 196px;
height: 18px;
border: 1px solid #ccc;
border-radius: 3px;
margin: 0 5px;
}
.search button{
padding: 3px 10px;
background-image: linear-gradient(to bottom, #9c9da1 0%,
#666 30%, #4e4f56 100%);
border: 1px solid #949494;
border-radius: 3px;
font-weight: bold;
color: #fff;
}
/* 공지사항 및 자료실 영역 */
.board{
margin-top: 20px;
height: 170px;
position: relative;
}
.board section{
position: relative;
}
.board section:target{ /* => 클릭 시 타겟 됨 */
z-index: 10; /* 섹션(h2) 클릭시 해당 ul 보여줌 */
}
.board h2{
float: left;
font-size: 1em;
}
.board h2 a{ /* 공지사항, 자료실 메뉴 버튼 */
display: inline-block;
padding: 6px 15px;
color: #7a7a7a;
font-family: "NanumEX";
border: 1px solid #c9c9c9;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
background-image: linear-gradient(to bottom,
#fcfcfc 0%, #eaeaea 100%);
}
.board section:target h2 a{ /* 공지사항, 자료실 클릭 시*/
color: #ff4911;
background: #fff;
border: 1px solid #ff6738;
border-bottom: 1px solid white;
}
.board::before{
content: "";
position: absolute;
left: 0;
top: 27px;
width: 362px;
height: 1px;
background: linear-gradient(to right, #bbbaba 0%,
#fff 100%);
}
.board ul { /* 공지사항, 자료실 목록 */
position: absolute; /* 겹침 -> 자료실만 출력 */
top: 40px;
left: 0;
width: 100%;
background-color: #fff;
}
.board li {
margin-bottom: 10px;
}
.board ul a{
display: inline-block;
width: 300px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.board ul a::before{
font-family: "webcafeIcon";
content: "r";
font-weight: bold;
position: relative;
top: 2px;
}
.board .more { /* 더보기 버튼 */
position: absolute; /* 겹침 */
top: 0;
right: 0;
padding: 8px;
}
.more::before{
font-family: "webcafeIcon";
content:"p";
color: #00b745;
margin-right: 3px;
position: relative;
top: 2px;
}
.board time{
float: right;
color: #7a7a7a;
}
/* 새소식 영역 */
.news{
margin-top: 20px;
position: relative;
}
.news::before{
content: "";
position: absolute;
left: 0;
top: 27px;
width: 362px;
height: 1px;
background: linear-gradient(to right, #bbbaba 0%,
#fff 100%);
}
.news>h2 {
color: #ff5a00;
font-size: 1.2em;
}
.news .more{
position: absolute;
right: 0;
top: 0;
padding: 8px;
}
.news article{
margin: 25px 0 0 130px;
}
.news article h3{
mask-border: 10px;
font-size: 1em;
}
.news article h3::before{
font-family: "webcafeIcon";
content: "r";
color: #666;
position: relative;
top: 2px;
}
.news figure{
text-align: center;
position: absolute;
left: 0;
top: 45px;
}
.news figure img{
box-shadow: 0 10px 15px #eee;
margin-bottom: 15px;
}
.news time{
font-size: 0.9em;
margin-left: 12px;
}
.news p{
margin-left: 12px;
margin-top: 10px;
line-height: 1.8;
}
/* infoArea 영역 종료 */
/* linkArea 영역 시작 */
#linkArea{
width: 200px;
margin-right: 30px;
}
.eventRelatedArea{
border: 1px solid #ccc;
border-radius: 5px;
background-image: linear-gradient(to bottom,
#fff 0%, #f4f4f4 100%);
padding: 10px 13px;
}
/* 신규 이벤트 영역 */
.event{
position: relative;
}
.event h2{
font-size: 1.2em;
padding-bottom: 10px;
}
.event span{
color: #ff3c00;
}
.event img{
border: 1px solid #eee;
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
}
.event p{
padding: 10px 0;
line-height: 1.4;
}
.event em{ /*기본값: 기울임*/
font-style: normal;
display: block; /*한줄 차지*/
}
.btnEventArea{
position: absolute;
top: 0;
right: 0;
}
.btnEventArea a {
/*ir기법: 이미지가 텍스트 대체*/
/*CSS Sprites 기법: 한 이미지에 여러 이미지 포함한 후
일부만 보이게 함*/
display: inline-block;
width: 20px;
height: 20px;
white-space: nowrap;
overflow: hidden;
text-indent: 20px; /* ir */
background-image: url(images/back_forward.png); /*CSS Sprites*/
background-repeat: no-repeat;
}
.btnEventPrev{
background-position: 0 0; /*CSS Sprites*/
}
.btnEventNext{
background-position: 100% 0; /*CSS Sprites*/
}
/* 관련사이트 영역 */
.relatedLink h2{
font-size: 1.2em;
padding: 10px 0;
border-top: 1px solid #ccc;
}
.relatedLink span{
color: #ff3c00;
}
.relatedLink ul{
height: 25px;
overflow: hidden;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #fff;
transition: height 0.2s;
}
.relatedLink ul:hover{
height: 125px; /*5 링크 표시*/
padding: 10px 0;
}
.relatedLink li{
height: 25px; /*한 줄만 보이도록*/
line-height: 25px;
text-indent: 1.5em;
}
.relatedLink a{
display: block; /*클릭 범위 좌우로 넓힘*/
}
/* 인기 사이트 영역 */
.hotLink{
margin-top: 20px;
border: 1px solid #ccc;
border-radius: 5px;
background-image: linear-gradient(to bottom,
#fff 0%, #f4f4f4 100%);
padding: 10px 12px 8px 10px;
position: relative;
}
.hotLink h2{
font-size: 1.2em;
}
.hotLink span{
color: #ff3c00;
}
.hotLink .more{
position: absolute;
top: 8px;
right: 6px;
padding: 8px;
}
.hotLink ol{
margin-top: 5px;
padding: 0;
overflow: hidden;
}
.hotLink li{
position: relative;
margin-top: 5px;
counter-increment: number; /* 정렬 타이틀 */
}
.hotLink li:last-child{ /* .no4 */
margin-bottom: 2px;
}
.hotLink li::before{
content: counter(number, decimal);
/* number 정렬 자동 매기기 (decimal 생략 가능) */
padding: 2px 5px;
background-color: #a1a1a1;
color: #fff;
border-radius: 3px;
margin-right: 5px;
}
.hotLink em{
float: right;
width: 8px;
height: 0;
overflow: hidden;
padding-top: 12px;
background: url(images/rank.png) no-repeat;
}
.hotLink .up{
background-position: 0 0;
}
.hotLink .stop{
background-position: 0 50%;
}
.hotLink .down{
background-position: 0 100%;
}
/* linkArea 영역 종료 */
|
cs |
- join.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="hk"> <!-- 제작자 정보 -->
<meta name="keywords" content="webcafe, 웹접근성"> <!-- 페이지 키워드 -->
<meta name="description" content="html5 css3 소개"> <!-- 페이지 설명 -->
<meta name="robots" content="all">
<link rel="shortcut icon" href="images/common/webcafe.ico">
<title>회원가입</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/join.css">
</head>
<body>
<!-- 건너뛰기 링크 시작 (웹 접근성)-->
<a id="skipNav" href="#contentsArea">본문 바로가기</a>
<!-- 건너뛰기 링크 종료 -->
<!-- wrapper 영역 시작 -->
<div id="wrapper">
<!-- 헤더 영역 시작 (로고, 메인메뉴) -->
<header>
<h1 class="logo">
<a href="index.html">
<img src="images/logo.png" alt="">
</a>
</h1>
<ul class="infoLink">
<li><a href="index.html">홈</a></li> <!-- 링크 모음이므로 nav 이용 X -->
<li><a href="#">로그인</a></li>
<li><a href="join.html">회원가입</a></li>
<li><a href="#">사이트맵</a></li>
<li><a href="#">ENGLISH</a></li>
</ul>
<nav role="navigation"> <!-- role: (웹 접근성) 구조 정보 전달 -->
<h2 class="hidden">메인 메뉴</h2> <!-- hidden 클래스 모두 숨기기 예정 -->
<ul class="mainMenu">
<li><a href="#">HTML에 대해</a>
<ul class="aboutHTML">
<li><a href="#">HTML5 소개</a></li>
<li><a href="#">레퍼런스 소개</a></li>
<li><a href="#">활용 예제</a></li>
</ul>
</li>
<li><a href="#">CSS에 대해</a>
<ul class="aboutCSS">
<li><a href="#">CSS 소개</a></li>
<li><a href="#">CSS2 VS CSS3</a></li>
<li><a href="#">CSS 애니메이션</a></li>
<li><a href="#">CSS Framework</a></li>
</ul>
</li>
<li><a href="#">웹 표준</a>
<ul class="webStandard">
<li><a href="#">웹 표준이란</a></li>
<li><a href="#">W3C</a></li>
<li><a href="#">HTML5의 현재와 미래</a></li>
</ul>
</li>
<li><a href="#">웹 접근성</a>
<ul class="webAccessibility">
<li><a href="#">웹 접근성의 개요</a></li>
<li><a href="#">장애 환경의 이해</a></li>
<li><a href="#">장차법</a></li>
<li><a href="#">웹 접근성 품질마크</a></li>
</ul>
</li>
<li><a href="#">묻고 답하기</a>
<ul class="qna">
<li><a href="#">묻고 답하기</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">1대1 질문</a></li>
<li><a href="#">웹표준</a></li>
<li><a href="#">웹접근성</a></li>
</ul>
</li>
<li><a href="#">자료실</a>
<ul class="archive">
<li><a href="#">공개 자료실</a></li>
<li><a href="#">이미지 자료실</a></li>
<li><a href="#">웹표준 자료실</a></li>
<li><a href="#">웹접근성 자료실</a></li>
</ul>
</li>
</ul>
</nav>
</header>
<!-- 헤더 영역 종료 -->
<!-- 비주얼 영역 시작 (이미지)-->
<div id="visual">
<p>Web Standard & Accessibility</p>
</div>
<!-- 비주얼 영역 종료 -->
<!-- 메인 콘텐츠 영역 시작 -->
<div id="contentsArea">
<!-- 회원가입 영역 시작 -->
<section id="memberArea">
<p class="location">Home > 자료실 >
<strong>이미지 자료</strong></p>
<h2>회원가입</h2>
<p class="formSign"><strong class="require">필수
</strong>는 반드시 입력해야 하는 항목입니다.</p>
<form action="join.jsp" method="post"
id="joinForm" name="joinForm">
<fieldset>
<legend>회원가입 정보 입력 폼</legend>
<p>
<label for="name">성명<strong class="require">필수</strong></label>
<input type="text" name="name" id="name" required placeholder="홍길동">
<!-- name: 백엔 (서버 전송) / id:프엔 -->
</p>
<p>
<label for="id">
아이디<strong class="require">필수</strong>
</label>
<input type="text" name="id" id="id" required placeholder="Guest">
<a href="pop_idCheck.html" class="idCheck">ID 중복 확인</a>
</p>
<p>
<label for="pass">
비밀번호<strong class="require">필수</strong>
</label>
<input type="text" name="pass" id="pass" required placeholder="영문/숫자 6~10자 이내">
</p>
<p>
<label for="confirmPass">
비밀번호 확인<strong class="require">필수</strong>
</label>
<input type="password" id="confirmPass" name="confirmPass" required>
</p>
<p>
<label for="address" class="labelAddress">주소</label>
<a href="find_zipcode.html" class="findZipcode">우편번호 찾기</a>
<input type="tel" id="zipcode" name="zipcode"
maxlength="5" size="6" title="우편번호">
<input type="text" name="address" id="address"
maxlength="100" size="60" placeholder="예) 서울시 종로구 관철동 11번지">
</p>
<p>
<label for="tel">연락처</label>
<input type="tel" id="tel" name="tel" maxlength="11" size="20"
title="하이픈(-)은 입력할 수 없습니다." placeholder="예)01012345678">
</p>
<p>
<label for="email">이메일<strong class="require">필수</strong></label>
<input type="email" name="email" id="email" size="30" required
placeholder="예)aaa@gmail.com">
</p>
<p class="mailing">
<em>메일링 리스트 가입</em>
<span>메일링 리스트에 가입하시면 WebCafe의
뉴스레터를 받아보실 수 있습니다.</span>
<input type="radio" id="mailingOk" name="mailing"
value="Yes" checked><label for="mailingOk">예</label>
<input type="radio" id="mailingNo" name="mailing"
value="No"><label for="mailingNo">아니오</label>
</p>
<div class="btnJoinArea">
<button type="submit" class="btnOk">회원가입</button>
<button type="reset" class="btnCancel">취소</button>
</div>
</fieldset>
</form>
</section>
<!-- 회원가입 영역 종료 -->
<!-- 트위터 영역 시작 -->
<section id="twitterArea">
<h2>twitter</h2>
<article class="twitterArticle">
<img src="images/seulbinim.jpg" alt="seulbinim">
<a href="http://twitter.com/seulbinim"
class="twitterUserName" title="seulbinim의 트위터로 연결">seulbinim</a>
<p>한국정보화진흥원에서 <mark>HTML5</mark>교육을 무료로 합니다.
<mark>HTML5</mark>교육에 관심있는 분들은 한국정보화진흥원으로
문의하시길 바랍니다.</p>
<time datatime="2021-09-03" class="twitterDate">2021년 09월 03일</time>
</article>
<article class="twitterArticle">
<img src="images/miheeya.jpg" alt="miheeya">
<a href="http://twitter.com/miheeya"
class="twitterUserName" title="miheeya의 트위터로 연결">seulbinim</a>
<p><mark>HTML5</mark>도 XHTML1.0이나 HTML4.01과 같은 마크업언어입니다.
<mark>HTML5</mark>를 사용한다고 해서 웹표준을 준수하지 않는다거나
웹접근성이 떨어지는 것이 아닙니다.</p>
<time datatime="2021-09-03" class="twitterDate">2021년 09월 03일</time>
</article>
</section>
<!-- 트위터 영역 종료 -->
</div>
<!-- 메인 콘텐츠 영역 종료 -->
<!-- 슬로건 영역 시작 -->
<div id="slogan">
<h2>Web Cafe 슬로건</h2>
<p>
<q cite="http://www.w3.org/WAI/">The power of the Web
is in its universality, Access by everyone regardless
of disability is an essential aspect.</q>
Tim Berners-Lee, W3C Director and Invertor of the World Wide Web.
</p>
<footer class="hidden"> <!-- 출처 명시용 -->
출처: World Wide Web Consortium - http://w3.org/WAI/
</footer>
</div>
<!-- 슬로건 영역 종료 -->
<!-- 푸터 영역 시작 -->
<footer id="footer">
<div id="footerInner">
<a href="#" class="footerLogo">
<img src="images/footer_logo.png" alt="WebCafe">
</a>
<a href="#" class="techLogoArea">
<img src="images/html5_logo.png" alt="">
<img src="images/css3_logo.png" alt="">
</a>
<section class="guide">
<h2 class="hidden">사이트 이용안내</h2>
<ul>
<li><a href="#">회사소개</a></li>
<li><a href="#">개인정보 보호정책</a></li>
<li><a href="#">이메일 주소 무단 수집거부</a></li>
<li><a href="#">contact us</a></li>
<li><a href="#">site map</a></li>
</ul>
</section>
<address>
<span>서울시 마포구 상수동 123-12 한주빌딩 5층</span>
<span>· 전화: 02-234-5678</span>
<span>· E-MAIL: <a href="mailto:webmaster@webcafe.com">
webmaster@webcafe.com
</a></span>
</address>
<p class="copyright">
Copyright since © 2010 by Web Cafe
</p>
</div>
</footer>
<!-- 푸터 영역 종료 -->
</div>
<!-- wrapper 영역 종료 -->
</body>
</html>
|
cs |
- join.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
@charset "utf-8";
/* memberArea 영역 시작 */
#memberArea{
width: 630px;
margin-right: 30px;
position: relative;
}
.location{
position: absolute;
top: 18px;
right: 30px;
}
.location strong{
color: #51a41e;
}
#memberArea h2{
font-size: 1.5em;
font-family: "NanumEX";
color: #ff3c00;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
border-bottom: 2px solid#ff6738;
padding-top: 15px;
padding-bottom: 15px;
margin-bottom: 15px;
}
.formSign{
text-align: right;
margin: 30px 0 10px;
}
.require{ /*필수*/
display: inline-block;
width: 10px;
height: 12px;
white-space: nowrap;
text-indent: 10px;
overflow: hidden; /*글자 숨기기*/
}
.require::before{
font-family: "webcafeIcon";
content: "s";
color: #ff4802;
position: relative;
left: -10px; /*indent 영향 -> 왼쪽 이동시키기*/
}
#joinForm{
border-top: 2px solid #ccc;
}
#joinForm p {
border-bottom: 1px solid #ccc;
overflow: hidden;
position: relative;
}
#joinForm label, .mailing em{
float: left;
width: 120px; /* 인풋 정렬 */
padding: 13px 20px;
margin-right: 10px;
font-weight: bold;
color: #666;
background: #fffcef;
}
#joinForm .mailing label{
float: none;
padding: 0;
width: auto;
background: none;
}
#joinForm input{
margin: 10px 0;
}
#joinForm input:not([type="radio"]){ /*라디오X*/
border: 1px solid #aaa;
height: 18px;
padding-left: 5px;
}
#joinForm input[type=radio]{ /*라디오O*/
margin:0;
}
a.idCheck, a.findZipcode{
font-family: "NanumEX";
font-size: 0.9em;
background-color: #fe8389;
color: #fff;
padding: 3px 15px;
margin-left: 5px;
border-radius: 20px;
text-shadow: 1px 1px 1px #ed676c,
1px -1px 1px #ed676c;
}
a.findZipcode{
position: absolute;
left: 230px;
top: 12px;
}
input#address{
display: block;
margin: 0;
}
.labelAddress{
height: 50px;
line-height: 50px;
}
.mailing em{
font-style: normal;
height: 35px;
line-height: 35px;
}
.mailing span{
display: block; /*한줄 차지 -> 예 아니오 따로 배치*/
margin: 10px 0;
}
.btnJoinArea{
text-align: center;
margin: 15px 0;
}
.btnJoinArea button{
font-family: "NanumEX";
font-size: 1.2em;
color: #fff;
padding: 8px 20px;
border: 0;
margin: 0 5px;
border-radius: 3px;
letter-spacing: 1px;
}
.btnOk{
background: linear-gradient(to bottom, rgba(98,98,98,0.8) 0%,
rgb(98, 98, 98) 50%, rgb(81, 81, 81) 100%);
}
.btnCancel{
background: linear-gradient(to bottom, rgba(145,145,145,0.8) 0%,
rgb(145,145,145) 50%, rgb(81,81,81) 100%);
}
.btnOk::before{
font-family: "webcafeIcon";
content: "h";
font-size: 2em;
position: relative;
line-height: 0; /*아이콘 높이 기본값 없앰*/
top: 7px;
left: -5px;
}
/* memberArea 영역 종료 */
/* twitterArea 영역 시작 */
#twitterArea{
width: 210px;
margin-left: 30px;
position: relative;
margin-top: 15px;
}
/* twitterArea 영역 종료 */
|
cs |
'Programming > 국비학원' 카테고리의 다른 글
220629 - 자바스크립트 - 변수, 연산자, 조건문(if, switch, 삼항연산자, 짧은 조건문), 반복문(for문, 향상된 for문) (0) | 2022.06.30 |
---|---|
220628 - 웹페이지 구현 실습(회원가입창 완료), 자바스크립트 (변수) (0) | 2022.06.29 |
220624 - 웹페이지 구현 실습 (0) | 2022.06.25 |
220623 - 웹페이지 구현 실습 (webcafe) (0) | 2022.06.24 |
220622 - 그리드, 웹페이지 구현 (0) | 2022.06.23 |