123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Frame image and title</title>
- <style>
- /*@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);*/
- figure.snip1113 {
- font-family: 'Raleway', Arial, sans-serif;
- position: relative;
- overflow: hidden;
- margin: 10px;
- min-width: 220px;
- max-width: 310px;
- width: 100%;
- background: #ffffff;
- text-align: center;
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
- }
- figure.snip1113 * {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- -webkit-transition: all 0.3s ease-in-out;
- transition: all 0.3s ease-in-out;
- }
- figure.snip1113 img {
- max-width: 65%;
- margin: 40px auto;
- display: block;
- position: relative;
- border: 3px solid #666666;
- padding: 15px 15px 85px 15px;
- -webkit-transform: translate(0, 0);
- transform: translate(0, 0);
- }
- figure.snip1113 figcaption {
- position: absolute;
- height: 120px;
- bottom: 0px;
- left: 0;
- right: 0;
- display: block;
- }
- figure.snip1113 h3 {
- background-color: #ffffff;
- color: #000000;
- font-size: 1.7em;
- width: 100%;
- padding: 5px 12px;
- margin: 0;
- text-transform: uppercase;
- font-weight: 400;
- }
- figure.snip1113 h3 span {
- font-weight: 800;
- }
- figure.snip1113 h4 {
- margin: 0;
- text-transform: uppercase;
- letter-spacing: -1px;
- opacity: 0.6;
- font-size: 1.1em;
- }
- figure.snip1113.blue img {
- border-color: #2472a4;
- }
- figure.snip1113.blue h3,
- figure.snip1113.blue h4 {
- color: #2472a4;
- }
- figure.snip1113.red img {
- border-color: #ab3326;
- }
- figure.snip1113.red h3,
- figure.snip1113.red h4 {
- color: #ab3326;
- }
- figure.snip1113.yellow img {
- border-color: #e08e0b;
- }
- figure.snip1113.yellow h3,
- figure.snip1113.yellow h4 {
- color: #e08e0b;
- }
- figure.snip1113.green img {
- border-color: #229955;
- }
- figure.snip1113.green h3,
- figure.snip1113.green h4 {
- color: #229955;
- }
- figure.snip1113.orange img {
- border-color: #d67118;
- }
- figure.snip1113.orange h3,
- figure.snip1113.orange h4 {
- color: #d67118;
- }
- figure.snip1113.navy img {
- border-color: #2b3c4e;
- }
- figure.snip1113.navy h3,
- figure.snip1113.navy h4 {
- color: #2b3c4e;
- }
- /* Demo purposes only */
- html {
- height: 100%;
- }
- body {
- background-color: #212121;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-flow: wrap;
- margin: 0;
- height: 100%;
- }
- </style>
- </head>
- <body>
- <figure class="snip1113 red">
- <img src="pr-sample1.jpg" alt="pr-sample1">
- <figcaption>
- <h3>Roberto <span>Alvarez</span></h3>
- <h4>
- Creator
- </h4>
- </figcaption>
- </figure>
- <figure class="snip1113 blue hover"><img src="pr-sample3.jpg" alt="pr-sample3">
- <figcaption>
- <h3>Joshua <span>Franklin</span></h3>
- <h4>
- Creator
- </h4>
- </figcaption>
- </figure>
- <figure class="snip1113"><img src="pr-sample9.jpg" alt="pr-sample9">
- <figcaption>
- <h3>Dalene <span>Atkinson</span></h3>
- <h4>
- Creator
- </h4>
- </figcaption>
- </figure>
- <script>
- // https://codepen.io/littlesnippets/pen/ZbemQo
- </script>
- </body>
- </html>
|