웹프로그래밍

Global It Leader!!


CSS


 
 

div 정렬 2단 * 2열

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 738회 작성일 22-03-26 22:25

본문

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width">

    <title>alignment practice</title>

<style>

.parent{

    width: 100%;

    margin: 10px auto;


}


.first {

    border: 1px solid red;

    float:left;

    width:25%;

    box-sizing: border-box;

}


.second{

    border: 1px solid green;

    float:left;

    margin-left: 5%;

    width:25%;

    box-sizing: border-box;

}


.third{

clear:both;

    float:left;

    border: 1px solid blue;

    width:25%;

    box-sizing: border-box;

}

.force{

    border: 1px solid blue;

    float:left;

margin-left: 5%;

    width:25%;

    box-sizing: border-box;

}


</style>

</head>

<body>


    <div class="parent">

        <div class="first">first</div>

        <div class="second">second</div>

        <div class="third">third</div>

        <div class="force">force</div>

    </div>

    

    

</body>

</html>


댓글목록

등록된 댓글이 없습니다.

전체 70
게시물 검색
CSS 목록
번호 제목 글쓴이 조회 날짜
70 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 409 09-01
69 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 829 04-24
68 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1325 04-24
67 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 721 03-28
66 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1309 03-26
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 739 03-26
64 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 737 03-25
63 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 763 03-18
62 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4049 11-28
61 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1179 09-20
60 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1322 08-23
59 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1550 06-07
58 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1800 05-20
57 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1806 04-08
56 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2098 02-03
55 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1861 12-19
54 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1947 11-02
53 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2019 10-25
52 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2123 10-22
51 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3124 10-11