• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 HTML/CSS 게시판 form 숙제 질문

form 숙제 질문

  • 이 주제에는 1개 답변, 2명 참여가 있으며 codingapple1 년 전에 전에 마지막으로 업데이트했습니다.
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #126425

    김다선
    참가자
    지금 가장 아래 체크박스가 가로줄 한줄을 전부 차지하고 있어서,
    누르기/구매하기와 한 라인에 위치가 되지 않습니다.
    
    어떻게 수정하면 될까요?
    
    감사합니다.
    
    화면 캡처 2024-06-24 083651<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <link href="main.css" rel="stylesheet">
    </head>
    <body>
        <div class="background">
            
            <div class="main-background">
                <div class="first-form">
                    <h2 class="contact">contact us</h2>
                    <p>Your Email</p>
                    <form>
                        <input type="email" placeholder="email@example.com">
                    </form>
                </div>
                <div class="second-form">
                    <div class="left-form">
                    <p>First name</p>
                    <form>
                        <input type="text">    
                    </form>
                    </div>
                    <div class="right-form">
                        <p>First name</p>
                        <form>
                            <input type="text">    
                        </form>
                    </div>
                </div>
                <div style="clear:both;"></div>
                <div class="third-form">
                    <p>Message</p>
                    <form>
                        <textarea rows='10' style="width:100%; box-sizing:border-box"></textarea>    
                    </form>
                </div>
            
                <div class="bottom-form">
                    <input type="checkbox">
                    <label for="subscribe">누르기</label>
                    <button>구매하기</button>
                
                </div>
            
            </div>
        </div>
        
    </body>
    </html>
    
    
    
    body{
        margin:0;
    }
    div{
        margin:0;
        box-sizing: border-box;
    }
    .background{
        width:800px;
        height:1000px;
        background-color: #eee;
        display:flex;
        align-items:center;
    }
    .contact{
        margin:0;
        padding-top:5%;
        padding-bottom:5%;
        font-family: 'gulim';
        font-size:2vw;
    }
    .main-background{
        background-color: aqua;
        width:75%;
        height:90%;
        margin:auto;
        align-items:center;
    }
    input{
        width:100%;
        padding:15px;
        box-sizing:border-box ;    
    }
    .left-form{
        float:left;
        width: 40%;
    }
    .right-form{
        float:right;
        width : 40%;
    }
    .main-background div{
        margin-top: 2vw;
    }
    .third-form{
        padding-top: 3vw;
    }
    .bottom-form{
        background-color: aquamarine;
        width:100%;
    }
     
    #126428

    codingapple
    키 마스터
    input{
        width:100%;
    }
    때문인듯요 폭을 다르게 줘봅시다
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠