뉴비코더
나는 코딩뉴비
뉴비코더
전체 방문자
오늘
어제
  • 분류 전체보기 (91)
    • 개발입문뉴비 - 국비지원 ( Front End ) (91)
      • html (26)
      • css (58)
      • javascript (6)
      • Library React.js (0)
    • FrontEnd ( Self-study ) (0)
      • html5, CSS3 (0)
      • Vanilla JS (0)
      • Clone Code (0)
    • BackEnd ( self-study ) (0)
      • Library Node.js (0)
      • Python (0)
      • Go (0)

블로그 메뉴

  • 홈
  • 방명록

공지사항

인기 글

태그

  • psuedo-class
  • js event
  • 하이퍼링크
  • js event object
  • Transition
  • webfont
  • 프론트엔드
  • padding
  • js 이벤트객체
  • position
  • 웹개발입문
  • 클론코딩
  • ol
  • HTML
  • transform
  • 웹개발
  • Javascript 배열
  • parseInt
  • UL
  • 코딩진화
  • 마크업
  • boxmodeling
  • JavaScript
  • css3
  • js 생성 함수
  • boxmodel
  • 국비지원
  • HTML5
  • Margin
  • 가상클래스

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
뉴비코더

나는 코딩뉴비

[2021/12/21]국비지원 CSS3 3-(3) 과제2 : 3단 boxmodel
개발입문뉴비 - 국비지원 ( Front End )/css

[2021/12/21]국비지원 CSS3 3-(3) 과제2 : 3단 boxmodel

2022. 1. 31. 04:50

 

수업 중 과제 2

3단 boxmodel


 

사용한 css3

  • width
  • height
  • padding
  • margin
  • background-color
  • font-size
  • color (font-color)
  • font-weight
  • border

 

작업내용

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>3단 boxmodel<title>
    <style type="text/css">
        *{padding: 0px;margin: 0px;}
        body{font-size: 30px;color: #fff; font-weight: bold;}
        #wrap{width:580px;height:580px;background-color: yellow; padding:10px;}
        #top{width:530px;height:136px;background-color: red;
             border: 5px solid #000;padding:20px;margin-bottom: 11px;}
        #middle{width:530px;height:136px;background-color: green;
                border: 5px solid #000;padding:20px;margin-bottom: 11px;}
        #bottom{width:530px;height:136px;background-color: blue;border: 5px solid #000;padding:20px;}
    </style>
</head>
<body>
    <div id="wrap">
        <div id="top">Top</div>
        <div id="middle">Middle</div>
        <div id="bottom">Bottom</div>
    </div>
</body>
</html>

 

 


결과물

 

저작자표시 비영리 변경금지 (새창열림)
    '개발입문뉴비 - 국비지원 ( Front End )/css' 카테고리의 다른 글
    • [2021/12/21]국비지원 CSS3 3-(5) 과제4 : navigation list-style
    • [2021/12/21]국비지원 CSS3 3-(4) 과제3 : 영어속담
    • [2021/12/21]국비지원 CSS3 3-(2) 과제1 : nhn 일반공고게시판 마크업
    • [2021/12/21]국비지원 CSS3 3-(1) boxmodel
    뉴비코더
    뉴비코더
    FrontEnd 지망 - 코딩뉴비를 위한(?), 뉴비에 의한, 뉴비의 블로그 - 코딩뉴비의 코딩 학습 기록 - 첨가물 : 약간의 불평/사족

    티스토리툴바