수

폴라로이드 이미지 / 카드

· 2017-08-31 (목) 17:45:12 · 2577

폴라로이드 이미지 / 카드


91308e91ff090fb4abed793c1e3856ce_1504169100_9184.png
 


예

div.polaroid {

    width: 80%;

    background-color: white;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}


img {width: 100%}


div.container {

    text-align: center;

    padding: 10px 20px;

}


[전체소스]

<!DOCTYPE html>

<html>

<head>

<style>

body {margin:25px;}


div.polaroid {

  width: 80%;

  background-color: white;

  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

  margin-bottom: 25px;

}


div.container {

  text-align: center;

  padding: 10px 20px;

}

</style>

</head>

<body>


<h2>Responsive Polaroid Images / Cards</h2>


<div class="polaroid">

  <img src="rock600x400.jpg" alt="Norway" style="width:100%">

  <div class="container">

    <p>The Troll's tongue in Hardanger, Norway</p>

  </div>

</div>


<div class="polaroid">

  <img src="lights600x400.jpg" alt="Norway" style="width:100%">

  <div class="container">

    <p>Northern Lights in Norway</p>

  </div>

</div>


</body>

</html>


댓글을 작성하시려면 로그인이 필요합니다.

퍼블리셔팁

1,282건

퍼블리싱과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
CSS 17-09-10 조회 2,073
CSS 17-09-10 조회 2,467
CSS 17-09-09 조회 2,049
CSS 17-09-09 조회 2,294
CSS 17-09-09 조회 2,086
CSS 17-09-07 조회 1,960
CSS 17-09-07 조회 2,329
CSS 17-09-07 조회 1,927
CSS 17-09-06 조회 2,022
CSS 17-09-06 조회 2,124
CSS 17-09-06 조회 2,135
CSS 17-09-02 조회 1,936
CSS 17-09-02 조회 4,628
CSS 17-09-02 조회 2,535
CSS 17-09-01 조회 2,945
CSS 17-09-01 조회 2,496
CSS 17-09-01 조회 2,418
CSS 17-08-31 조회 2,288
CSS 17-08-31 조회 2,578
CSS 17-08-31 조회 2,305
CSS 17-08-29 조회 2,460
CSS 17-08-29 조회 2,837
CSS 17-08-29 조회 2,156
CSS 17-08-25 조회 2,800
CSS 17-08-25 조회 2,224
CSS 17-08-25 조회 1,984
CSS 17-08-24 조회 1,665
CSS 17-08-24 조회 1,980
CSS 17-08-24 조회 2,771
CSS 17-08-23 조회 2,441