Berikut ini beberapa artikel tut's tentang tag HTML pre:
- Make Code Preview on Post Area pre & code
- Hover Trick on pre Attribute
- Coolest Hover Style for PRE and ABBR Tag
DEMO
div {
width: 200px;
height: 200px;
padding: 10px;
border: 1px solid #ddd;
background-size: cover;
background-clip: content-box;
background-color: #f66f6f;
box-sizing: border-box;
position: relative;
margin: auto;
}
width: 17em;
height: 200px;
padding: 10px;
border: 1px solid #777;
background-size: cover;
background-clip: content-box;
background-color: #F6F4F0;
box-sizing: border-box;
position: relative;
margin: 15px auto;
color: #333;
white-space: pre-line;
}
.paper-edge:after {
content: "";
display: block;
position: absolute;
border: 50px solid transparent;
bottom: -60px;
right: -65px;
box-shadow: 0px 7px 6px -9px black;
transform: rotate(135deg);
}
.paper-edge:before {
content: "";
display: block;
position: absolute;
border: 50px solid transparent;
top: -60px;
left: -65px;
box-shadow: 0px -7px 6px -9px black;
transform: rotate(135deg);
}
.paper-edge p {
margin: 10px;
height: 185px;
overflow: hidden;
text-indent: 15px;
}
.paper-edge p:hover {
overflow-y: auto;
}
Aturlah tinggi, lebar, padding & margin sesuai kebutuhan. Perhatikan pada variabel kode
Markup HTML<div class="paper-edge"><p>BLAH BLEH BLOH {
Selesai deh membuat membuat tag HTML pre dengan gaya paper edge effect.
----------- ADD CODED AFTER PHRASE HERE -----------
}</p></div>
Semoga bermanfaat :)
Resource by: http://cdpn.io/AyueF
BONUS links...
code-snippet-blog.dennispollack.de - cdpn.io/fDFce - cdpn.io/qmIdx - cdpn.io/AFsKB
Loading... |
2 comments
DO NOT EVEN TRY ADD LINK [-X
You can use some HTML tags, such as
<b> - <i> - <a> - http://...jpg/gif/png/bmp - http://youtu.be/...