폴라로이드 이미지 / 카드

· 8년 전 · 2333

폴라로이드 이미지 / 카드


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>


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

퍼블리셔팁

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

+
분류 제목 글쓴이 날짜 조회
CSS 8년 전 조회 1,874
CSS 8년 전 조회 1,738
CSS 8년 전 조회 2,093
CSS 8년 전 조회 1,680
CSS 8년 전 조회 1,801
CSS 8년 전 조회 1,888
CSS 8년 전 조회 1,902
CSS 8년 전 조회 1,705
CSS 8년 전 조회 4,404
CSS 8년 전 조회 2,322
CSS 8년 전 조회 2,719
CSS 8년 전 조회 2,252
CSS 8년 전 조회 2,186
CSS 8년 전 조회 2,062
CSS 8년 전 조회 2,334
CSS 8년 전 조회 2,094
CSS 8년 전 조회 2,236
CSS 8년 전 조회 2,625
CSS 8년 전 조회 1,950
CSS 8년 전 조회 2,556
CSS 8년 전 조회 1,981
CSS 8년 전 조회 1,768
CSS 8년 전 조회 1,458
CSS 8년 전 조회 1,784
CSS 8년 전 조회 2,556
CSS 8년 전 조회 2,226
CSS 8년 전 조회 1,914
CSS 8년 전 조회 1,941
CSS 8년 전 조회 1,721
CSS 8년 전 조회 2,040