728x90
반응형
728x90
반응형
                top: 50%;
                left: 50%;
                position: absolute;
                transform: translate(-50%, -50%);
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

border(테두리)  (0) 2022.12.21
background-color(배경색)  (0) 2022.12.21
style활용(회원가입창)  (0) 2022.12.21
style활용(신호등모양배열)  (0) 2022.12.21
style활용(회원가입+약관선택)  (0) 2022.12.21
728x90
반응형
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>신호등</title>
            <meta charset="UTF-8">
            <style>
                body > form {
                    width: 400px;
                    background-color: gray;

                }
                body > form > label {
                   
                    display: block;
                }
                body > form > label:nth-child(1){
                    background-color: black;
                    color: white;
                    font-size: 50px;
                    padding: 20px;
                }
                body > form > label:nth-child(2){
                    background-color: rgb(214, 234, 248);
                    padding: 30px;
                }
                body > form > div{
                    background-color: rgb(214, 234, 248);
                    padding-left: 30px;
                    padding-bottom: 20px;
                    padding-top: 0px;
                }
                body > form > label:nth-child(3){
                    background-color: rgb(133, 193, 233 );
                    padding: 20px;
                }
                .button {
                    background-color: rgb(52, 152, 219);
                    border-radius: 5px;
                    display: inline-block;
                    padding: 5px 10px;
                    color: white;
                    font-size: 20px;
                    font-weight: lighter;
                }

       
            </style>
    </head>
    <body>
        <form>
            <label>로그인</label>

            <label>
                <span><input type="email"   autofocus name="email" placeholder="이메일" type="email" size="35"></span>
                <span><input type="password" name="password" placeholder="비밀번호" type="password" size="35"></span>
                <div><input type="radio">이메일 주소 기억하기</div>
                <div class="button">로그인</div>
            </label>

            <label>
                <div>아직 계정이 없으신가요? <a href="#">회원가입</a></div>
                <div>계정 정보를 분실하셨나요? <a href="#">계정 복구</a></div>
            </label>
        </form>
    </body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

background-color(배경색)  (0) 2022.12.21
style(중간정렬하기)  (0) 2022.12.21
style활용(신호등모양배열)  (0) 2022.12.21
style활용(회원가입+약관선택)  (0) 2022.12.21
style활용(약관선택)  (0) 2022.12.21
728x90
반응형
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>신호등</title>
            <meta charset="UTF-8">
            <style>
                body > form {
                    width: 100px;
                    background-color: gray;
                    border-radius: 20px;
                    padding: 15px;
                }
                body > form > label {
                    padding: 50px;
                    border-radius: 50px;
                    display: block;
                }
                body > form > label:not(:last-child){
                    margin-bottom: 15px;
                }

                body > form > label:nth-child(1){
                    background-color: red;
                }
                body > form > label:nth-child(2){
                    background-color: yellow;
                }
                body > form > label:nth-child(3){
                    background-color: green;
                }
            </style>
    </head>
    <body>
        <form>
            <label>
   
            </label>
            <label>
 
            </label>
            <label>
       
            </label>
        </form>
    </body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

style(중간정렬하기)  (0) 2022.12.21
style활용(회원가입창)  (0) 2022.12.21
style활용(회원가입+약관선택)  (0) 2022.12.21
style활용(약관선택)  (0) 2022.12.21
style활용(표만들기)  (2) 2022.12.21
728x90
반응형
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>선택 복합</title>
            <meta charset="UTF-8">
            <style>
                input[type="checkbox"] + span{
                    color: red;
                }
                label > span[disabled]{
                    text-decoration: underline;
                    color: blue;
                }
                input[type="text"] + span{
                    color: blue;
                }
            </style>
    </head>
    <body>
        <span disabled>회원가입</span>
        <br>
        <label>
            <input type="text">
            <span>이메일을 입력해주세요.</span>
        </label>
        <br>
        <label>
            <input type="text">
            <span>비밀번호를 입력해주세요.</span>
        </label>
        <br>
        <label>
            <input type="checkbox">
            <span>첫번쩨 체크박스</span>
        </label>
        <br>
        <label>
            <input type="checkbox">
            <span>두번쩨 체크박스</span>
            <span disabled>선택 약관은 동의 여부가 회원가입에 영향을 미치지 않습니다.</span>
        </label>
    </body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

style활용(회원가입창)  (0) 2022.12.21
style활용(신호등모양배열)  (0) 2022.12.21
style활용(약관선택)  (0) 2022.12.21
style활용(표만들기)  (2) 2022.12.21
디스플레이  (0) 2022.12.19
728x90
반응형
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>약관선택</title>
            <meta charset="UTF-8">
            <style>
                /*
                visibility : hidden; 보이지 않음
                visibility : visible; 보임
                */
                a {
                    color: red;
                    visibility: hidden; /* 보이지 않음 */
                }
                input:checked + a {
                    color: black;
                    visibility: visible; /* 보임 */
                }
                /* :checked : 어떤 요소가 체크되었을 때.. */
                span~span {
                    color: red;
                }
                input:checked + span~span {
                    visibility : hidden;
                }
                div {
                    background-color: black;
                    color: white;
                }
                div~div {
                    visibility : hidden;
                }
                div:hover + div{
                    visibility: visible;
                }
                div.backblack {
                    background-color: white;
                    color: black;
                }

            </style>
    </head>
    <body>
        <!-- <input type="checkbox">
        <a>Hi!</a> -->

        <input type="checkbox">
        <span>이용 약관에 동의합니다.</span>
        <br>
        <span>이용약관을 읽고 동의해주세요!</span>
        <br><br>
        <div>이용약관 보기</div>
        <div class="backblack">이용약관~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div>

    </body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

style활용(신호등모양배열)  (0) 2022.12.21
style활용(회원가입+약관선택)  (0) 2022.12.21
style활용(표만들기)  (2) 2022.12.21
디스플레이  (0) 2022.12.19
의사 클래스  (0) 2022.12.19
728x90
반응형
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>선택자 1</title>
            <meta charset="UTF-8">
            <style>
                /*
                '부모/선조 선택자' '선택자' {
                    ...
                }
                */
                tr th{
                    background-color: black;
                }
                tr th{
                    color: white;
                }
                thead > tr > td {
                    background-color: dodgerblue;
                }
                thead > tr > td {
                    color : white
                }
                tfoot > tr > td {
                    background-color: gray;
                }
                tfoot > tr > td {
                    color: white;
                }
                tbody > tr > td {
                    color: black;
                }
            </style>
    </head>
    <body>
        <table border="1">
            <!-- border 테두리 속성 -->
            <caption>표 제목</caption>
            <!-- CAPTION : 표의 제목 (선택) -->
            <thead>
                <!-- THEAD : 표의 테이터가 아닌 열 이름 등을 담을 때 사용. (선택사항) -->
                <tr>
                    <!-- TR : Table Row, 하나의 행 -->
                    <th rowspan="2">코드</th>
                    <!-- TH : Table Heading, 열 이름을 담는 셀(칸) -->
                    <th rowspan="2">이름</th>
                    <th colspan="2">인구(만)</th>
                    <th rowspan="2">면적(km<sup>2</sup>)</th>
                </tr>
                <tr>
                    <td>2021</td>
                    <td>2022</td>
                </tr>
            </thead>
            <tbody>
                <!-- TBODY : 표의 데이터를 담을 때 사용.(필수) -->
                <tr>
                    <th>KR</th>
                    <th>대한민국</th>
                    <td >5078</td>
                    <td >5178</td>
                    <td >100210</td>
                </tr>
                <tr>
                    <th>US</th>
                    <th>미국</th>
                    <td >32850</td>
                    <td >32950</td>
                    <td >9834000</td>
                </tr>
                <tr>
                    <th>JP</th>
                    <th>일본</th>
                    <td>12480</td>
                    <td>12580</td>
                    <td>377975</td>
                </tr>
                <tr>
                    <th>DE</th>
                    <th>독일</th>
                    <td>8224</td>
                    <td>8324</td>
                    <td>357588</td>
                </tr>
                <tr>
                    <th>FR</th>
                    <th>프랑스</th>
                    <td>6639</td>
                    <td>6739</td>
                    <td>543940</td>
                </tr>
                <tr>
                    <th>GB</th>
                    <th>영국</th>
                    <td>6622</td>
                    <td>6722</td>
                    <td>243610</td>
                </tr>
            </tbody>
               
            <tfoot>
                <tr>
                    <th colspan="2">평균</th>
                    <!-- COLSPAN 속성 : 가로(가로) 방향으로 통합시킬 셀 개수(본 셀 포함)-->
                    <td>11982.16667</td>
                    <td>12082.16667</td>
                    <td>1909553.833</td>
                </tr>
                <!-- TFOOT : 표의 데이터에 대한 통계(평균, 합 들) 등을 담ㅇ르 때 사용. (선택) -->
            </tfoot>
        </table>
    </body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

style활용(회원가입+약관선택)  (0) 2022.12.21
style활용(약관선택)  (0) 2022.12.21
디스플레이  (0) 2022.12.19
의사 클래스  (0) 2022.12.19
테두리  (0) 2022.12.19
728x90
반응형
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>디스플레이</title>
            <meta charset="UTF-8">
            <style>
                span {
                    display: block;
                    /* visibility : hidden;*/
                }
                div {
                    width: 100px;
                    height: 50px;
                    background-color: red;
                    display: inline-block;
                }
                /* display
                block : 한 줄 다 차지
                inline : 필요한 만큼만 차지(단 가로/세로 크기 지정 안먹힘
                inline-block : 필요한 만큼만 (가로세로 크기 ok)
                none : 없음
                */
            </style>
    </head>
    <body>
        <span>A</span><span>B</span>
        <div>A</div>
        <div>B</div>
    </body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

style활용(약관선택)  (0) 2022.12.21
style활용(표만들기)  (2) 2022.12.21
의사 클래스  (0) 2022.12.19
테두리  (0) 2022.12.19
포지셔닝  (0) 2022.12.19
728x90
반응형
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>의사 클래스</title>
            <meta charset="UTF-8">
            <style>
               
               /*a {
                color: red;
               }*/
               /*a:hover {
                color: blue;
               }*/
                /* hover : 마우스를 올리면..*/
                /*a:active {
                    text-decoration: underline;
                }*/
                /* active : 마우스를 클릭하면..*/
                div > b:nth-child(1) {
                    color: red;
                }
                /* nth-child(x) : 같은 부모를 가지는 요소 전체 중 x번째 x는 1부터 시작*/
                /* div 의 자식 전체 중 두번째 이면서 b인 요소*/
                div > b:nth-of-type(2) {
                    color: red;
                }
                /* div의 자식인 b중에 두번째 */
                div > a:last-child {
                    color: green;
                }
                /* x:last-child : x 요소 이면서 마지막 */
                div > :last-child {
                    color: green;
                }
                /* 요소 상관없이 그냥 마지막 */
                div > :first-child {
                    color: red;
                }
                /* 요소 상관없이 제일 처음요소 선택 */

                div > :nth-child(odd) {
                    color: blue
                }
                /* 홀수 */
                div > :nth-child(even) {
                    color: blue
                }
                /* 짝수 */

                div > :not(:last-child) {
                    color: red;
                }
                /* 마지막을 제외하고 */
                div > :not(:last-child) {
                    color: blue
                }
                /* 첫번쨰를 제외하고 */

                input[type=text]{
                    background-color: blue;
                }
                input[type=text]:focus{
                    background-color: red;
                }
                input[type=text]:hover{
                    background-color: black;
                }
            </style>
    </head>
    <body>
        <a>I'm a</a>
        <div>
            <b>A</b>
            <a>B</a>
            <b>C</b>
            <a>D</a>
            <b>E</b>
        </div>
        <input type="text">
    </body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

style활용(표만들기)  (2) 2022.12.21
디스플레이  (0) 2022.12.19
테두리  (0) 2022.12.19
포지셔닝  (0) 2022.12.19
형태  (0) 2022.12.19

+ Recent posts

728x90
반응형
">