728x90
λ°μν

βοΈ ν μ€νΈ μ ν 01 βοΈ
01. λ μ΄μμ ꡬμνκΈ°
λ μ΄μμμ ꡬμν λλ, μ€μΌμΉνλ©΄μ μΈλΆ λ΄μ©μ μ 보κΉμ§ ꡬ체μ μΌλ‘ κ³νν©λλ€.
02. μμ(div) λ§λ€κΈ° : <body>
<section id="textType 01" class="text__wrap nexon section"> <h2>ν
μ€νΈ μ ν 01</h2> <p>μμ
νλ μ΄μ΄ μμ΄μ½ μ€λͺ
μ</p> <div class="text__inner container"> <article class="text"> <figure class="text__header"> <img src="img/text_bg01_icon01.png" alt="λΌμ΄λΈλ¬λ¦¬ μμ΄μ½"> </figure> <div class="text__box"> <h3 class="tit">λΌμ΄λΈλ¬λ¦¬</h3> <p class="desc"> μμ΄μ½μ λλ₯΄λ©΄ νλ©΄μ΄ λ°λλλ€. λ°λ νλ©΄μμ μνλ λ©λ΄λ‘ μ΄λ/ μ€μ μ μλ£νμμμ€. μμ΄μ½μ κΈΈκ² λλ₯΄λ©΄ μ€λͺ
μμκ° λμ΅λλ€. </p> <a href="#">λ보기</a> </div> </article> <article class="text"> <figure class="text__header"> <img src="img/text_bg01_icon02.png" alt="μ¨λ² μμ΄μ½"> </figure> <div class="text__box"> <h3 class="tit">μ¨λ²</h3> <p class="desc"> μμ΄μ½μ λλ₯΄λ©΄ νλ©΄μ΄ λ°λλλ€. λ°λ νλ©΄μμ μνλ λ©λ΄λ‘ μ΄λ/ μ€μ μ μλ£νμμμ€. μμ΄μ½μ κΈΈκ² λλ₯΄λ©΄ μ€λͺ
μμκ° λμ΅λλ€. </p> <a href="#">λ보기</a> </div> </article> <article class="text"> <figure class="text__header"> <img src="img/text_bg01_icon03.png" alt="μν°μ€νΈ μμ΄μ½"> </figure> <div class="text__box"> <h3 class="tit">μν°μ€νΈ</h3> <p class="desc"> μμ΄μ½μ λλ₯΄λ©΄ νλ©΄μ΄ λ°λλλ€. λ°λ νλ©΄μμ μνλ λ©λ΄λ‘ μ΄λ/ μ€μ μ μλ£νμμμ€. μμ΄μ½μ κΈΈκ² λλ₯΄λ©΄ μ€λͺ
μμκ° λμ΅λλ€. </p> <a href="#">λ보기</a> </div> </article> <article class="text"> <figure class="text__header"> <img src="img/text_bg01_icon04.png" alt="λ°λ³΅ λ£κΈ° μμ΄μ½"> </figure> <div class="text__box"> <h3 class="tit">λ°λ³΅ λ£κΈ°</h3> <p class="desc"> μμ΄μ½μ λλ₯΄λ©΄ νλ©΄μ΄ λ°λλλ€. λ°λ νλ©΄μμ μνλ λ©λ΄λ‘ μ΄λ/ μ€μ μ μλ£νμμμ€. μμ΄μ½μ κΈΈκ² λλ₯΄λ©΄ μ€λͺ
μμκ° λμ΅λλ€. </p> <a href="#">λ보기</a> </div> </article> <article class="text"> <figure class="text__header"> <img src="img/text_bg01_icon05.png" alt="μμ΄ λ£κΈ° μμ΄μ½"> </figure> <div class="text__box"> <h3 class="tit">μμ΄ λ£κΈ°</h3> <p class="desc"> μμ΄μ½μ λλ₯΄λ©΄ νλ©΄μ΄ λ°λλλ€. λ°λ νλ©΄μμ μνλ λ©λ΄λ‘ μ΄λ/ μ€μ μ μλ£νμμμ€. μμ΄μ½μ κΈΈκ² λλ₯΄λ©΄ μ€λͺ
μμκ° λμ΅λλ€. </p> <a href="#">λ보기</a> </div> </article> <article class="text"> <figure class="text__header"> <img src="img/text_bg01_icon06.png" alt="μ΅μ
μ ν μμ΄μ½"> </figure> <div class="text__box"> <h3 class="tit">μ΅μ
μ ν</h3> <p class="desc"> μμ΄μ½μ λλ₯΄λ©΄ νλ©΄μ΄ λ°λλλ€. λ°λ νλ©΄μμ μνλ λ©λ΄λ‘ μ΄λ/ μ€μ μ μλ£νμμμ€. μμ΄μ½μ κΈΈκ² λλ₯΄λ©΄ μ€λͺ
μμκ° λμ΅λλ€. </p> <a href="#">λ보기</a> </div> </article> </div> </section>
02. style(css) μ€μ νκΈ° : <style>
/* fonts */ @import url('https://webfontworld.github.io/gmarket/GmarketSans.css'); .gmarket { font-family: 'GmarketSans'; /* ν°νΈ μ§μ */ font-weight: 300; /* ν°νΈ λκ» μ€μ */ } /* reset */ * { margin: 0; /* κΈ°λ³Έ λΈλΌμ°μ μ λΉ κ³΅κ° μμ κΈ° */ padding: 0; } body { background-color: #FDF3EF; } a { text-decoration: none; /* λ§ν¬ κΈμμ κΈ°λ³Έ νλμ μμ κ³ κ²μ μΌλ‘ λ°κΏ */ color: #000; } img { width: 100%; /* μ΄λ―Έμ§ λΉμ¨ */ } h1, h2, h3, h4, h5, h6 { font-weight: normal; /* κΈ°λ³Έ κΈμ λκ»κ° λκ»κΈ° λλ¬Έμ λ³΄ν΅ κ΅΅κΈ°λ‘ λ°κΏ */ } /* common */ /* 곡ν΅μ΄λΌλ κ²μ λ€λ₯Έ μμ
μμλ μ¬μ©ν κ²μμ μ리λ κ² */ .container { width: 1160px; /* λ΄μ©μ΄ λ€μ΄μλ 컨ν
μ΄λ λ°μ€μ λλΉ μ€μ */ padding: 0 20px; margin: 0 auto; /* κ°μ΄λ° μ λ ¬ */ min-width: 1160; } .section { padding: 120px 0; } .section > h2 { /* > λ°λ‘ λ°μ μλ μμμ μ ν */ font-size: 50px; line-height: 1; /* μ€κ°κ²© μ€μ */ text-align: center; /* κΈμ μ€μ μ λ ¬ */ margin-bottom: 20px; } .section > p { font-size: 20px; font-weight: 500; color: #666; text-align: center; margin-bottom: 70px; } /* textType 03 */ .text__inner { display: flex; flex-wrap: wrap; justify-content: space-between; } .text__box { background-color: #fff; width: 32%; padding: 30px; box-sizing: border-box; border-radius: 10px; } .text__box:hover { background-color: #fff8cd; } .text__box .desc { font-size: 18px; color: #555; line-height: 1.2; padding-bottom: 20px; border-bottom: 1px dashed #d9d9d9; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 9; /* clamp μ€λ°κΏ 9μ€ μ΄μ λλ©΄ ... μΌλ‘ λ°λ - κ²μν΄μ μ¬μ© */ -webkit-box-orient: vertical; } .text__info { margin-top: 20px; display: flex; padding-bottom: 20px; box-sizing: border-box; margin-bottom: 20px; border-bottom: 1px dashed #d9d9d9; } .text__info img{ width: 60px; padding: 0 10px 0 0; } .text__info .user { display: inline; } .text__info .user h3 { font-size: 22px; padding: 0 0 0 5px; } .text__info .user h3 > span { font-size: 14px; color: #666; } .text__info .user h4 { font-size: 22px; } .text__box .more { width: 120px; height: 26px; background-color: #FF753D; border-radius: 50px; text-align: center; line-height: 26px; } .text__box .more a { font-size: 14px; font-weight: 500; color: #fff; }
03. 결과보기
728x90
λ°μν
'CSS > Layout_Site' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
ν μ€νΈ μ ν (3) (2) | 2022.09.01 |
---|---|
ν μ€νΈ μ ν (2) (2) | 2022.09.01 |
μ΄λ―Έμ§ μ ν (3) (2) | 2022.08.22 |
μ΄λ―Έμ§ μ ν (2) (2) | 2022.08.18 |
μ΄λ―Έμ§ μ ν (1) (4) | 2022.08.17 |
λκΈ