css 가상선택자, before&after, dothome과 file zila이용해 도메인에 웹 파일 업로드, css 강의 실습, helbak사이트 혼자 연습
a:link
방문한 적 없는 링크a:active
클릭 유지 시a:hover
마우스 올릴 때input:focus
입력칸에 커서 둘 때li:first-child
: 리스트의 첫 번째 항목li:last-child
: 리스트의 마지막 항목li:nth-child(n)
->리스트의 n번째 항목 (1부터 시작) 2n, 2n+1로 짝수 홀수 응용 가능a:link { color: red; }
a:active { color:blue }
a:hover {color: pink;}
input:focus { border: solid 3px green;}
li:first-child { color: greenyellow;}
li:last-child {color: indigo;}
li:nth-child(2n) {color: lightcoral;}
html 문서에는 따로 표시되지 않고 css로 삽입한 부분이다. 문자를 넣어도 html에서 문자로 인식되지 않고 단순 디자인, 캘리그라피로 취급한다. 메뉴 앞, 뒤에 디자인 삽입 시 유용하다. 예시로 before로 이미지 넣은 것을 보여주셔서 따로 찾아보니 url 등을 이용해 아이콘 등을 넣을 수 있다고 한다.
li::before {
content: "--";
}
li::after {
content: url("icon.png");
}
dothome
회원가입ftp id
, password
정해서 신청하기fileZila
다운로드github 소스코드: https://github.com/YesolLee421/DaeguAISchool2021/tree/main/kakao
github 소스코드: https://github.com/YesolLee421/DaeguAISchool2021/tree/main/naver
github 소스코드: https://github.com/YesolLee421/DaeguAISchool2021/tree/main/project_1
어제에 이어 오늘도 배운 내용으로 혼자 복습 겸 helbak사이트 메인페이지의 레이아웃을 만들어 보았다. 아직 레이아웃을 가로로 배치하는 방법이 나오지 않아서 모든 요소가 아래로 일렬로 늘어서서 아쉽다. 좀 더 다양한 배치가 가능해지면 더 자유롭게 실습할 수 있을 것 같다.