폴라로이드 이미지 / 카드

· 8년 전 · 2259

폴라로이드 이미지 / 카드


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,793
CSS 8년 전 조회 1,663
CSS 8년 전 조회 2,006
CSS 8년 전 조회 1,598
CSS 8년 전 조회 1,718
CSS 8년 전 조회 1,800
CSS 8년 전 조회 1,818
CSS 8년 전 조회 1,614
CSS 8년 전 조회 4,322
CSS 8년 전 조회 2,237
CSS 8년 전 조회 2,644
CSS 8년 전 조회 2,174
CSS 8년 전 조회 2,106
CSS 8년 전 조회 1,969
CSS 8년 전 조회 2,260
CSS 8년 전 조회 2,015
CSS 8년 전 조회 2,159
CSS 8년 전 조회 2,536
CSS 8년 전 조회 1,871
CSS 8년 전 조회 2,476
CSS 8년 전 조회 1,910
CSS 8년 전 조회 1,699
CSS 8년 전 조회 1,399
CSS 8년 전 조회 1,698
CSS 8년 전 조회 2,485
CSS 8년 전 조회 2,166
CSS 8년 전 조회 1,847
CSS 8년 전 조회 1,864
CSS 8년 전 조회 1,637
CSS 8년 전 조회 1,966