웹프로그래밍

Global It Leader!!


CSS


 
 

div 정렬 : 한줄에 4개 flex 이용

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 1,309회 작성일 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;

display: flex;

}


.first {

    border: 1px solid red;

    flex:1;

    width:25%;

    box-sizing: border-box;

}


.second{

    border: 1px solid green;

    flex:1;

    margin-left: 5%;

    width:25%;

    box-sizing: border-box;

}


.third{

    border: 1px solid blue;

    flex:1;

    margin-left: 5%;

    width:25%;

    box-sizing: border-box;

}

.force{

    border: 1px solid blue;

    flex:1;

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 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 830 04-24
68 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1326 04-24
67 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 722 03-28
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1310 03-26
65 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 739 03-26
64 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 738 03-25
63 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 763 03-18
62 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4050 11-28
61 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1179 09-20
60 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1323 08-23
59 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1550 06-07
58 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1800 05-20
57 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1807 04-08
56 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2098 02-03
55 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1862 12-19
54 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1947 11-02
53 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2020 10-25
52 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2123 10-22
51 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3125 10-11