/ Published in: CSS
Just a little fun with ASCII Characters and CSS.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ascii Characters</title> <style type="text/css"> * { margin:0; padding:0; } html { font:62.5%/1.5 "Lucida Grande", Verdana, sans-serif; } ul,ol,dl,p { margin-bottom:1.5em; font-size:1.2em; } li,dt,dd,p { font-size:1.2em; } ul,ol,dl,p { margin-bottom:1.5em; } li,dt,dd,p { font-size:1.2em; } ul,ol,dl { margin-bottom:1.8em; } p { margin-bottom:1.5em; } /***** Global Settings *****/ html,body { border:0; margin:0; padding:0; } body { font:100%/1.25 Arial, Helvetica, sans-serif; } /***** Headings *****/ h1,h2,h3,h4,h5,h6 { margin:0; padding:0; font-weight:normal; } h1 { padding:30px 0 25px; letter-spacing:-1px; font-size:2em; } h2 { padding:20px 0; letter-spacing:-1px; font-size:1.5em; } h3 { font-size:1em; font-weight:bold; } /***** Common Formatting *****/ p,ul,ol { margin:0; padding:0 0 1.25em; } ul,ol { padding:0 0 1.25em 2.5em; } blockquote { margin:1.25em; padding:1.25em 1.25em 0; } small { font-size:.85em; } img { border:0; } sup { position:relative; bottom:.3em; vertical-align:baseline; } sub { position:relative; bottom:-.2em; vertical-align:baseline; } acronym,abbr { cursor:help; letter-spacing:1px; border-bottom:1px dashed; } /***** Links *****/ a,a:link,a:visited,a:hover { text-decoration:underline; } /***** Forms *****/ form { margin:0; padding:0; display:inline; } form input,form select,form textarea { font:1em Arial, Helvetica, sans-serif; } form textarea { width:100%; line-height:1.25; } form label { cursor:pointer; } /***** Tables *****/ table { border:0; margin:0 0 1.25em; padding:0; } table tr td { padding:2px; } /***** Wrapper *****/ #wrap { width:960px; margin:0 auto; } /***** Global Classes *****/ .clear { clear:both; } .float-left { float:left; } .float-right { float:right; } .text-left { text-align:left; } .text-right { text-align:right; } .text-center { text-align:center; } .text-justify { text-align:justify; } .bold { font-weight:bold; } .italic { font-style:italic; } .underline { border-bottom:1px solid; } .highlight { background:#ffc; } .wrap { width:960px; margin:0 auto; } .img-left { float:left; margin:4px 10px 4px 0; } .img-right { float:right; margin:4px 0 4px 10px; } .nopadding { padding:0; } .noindent { margin-left:0; padding-left:0; } .nobullet { list-style:none; list-style-image:none; } * { margin:0; padding:0; } body { font:13px Verdana, Sans-Serif; } #page-wrap { margin:80px auto; width:90%; } div { font-family:HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight:300; font-size:92px; color:hsla(0,50%,50%,1); } div:hover { color:black; } h1 { font:bold 50px Sans-Serif; letter-spacing:-1px; } h2 { margin-top:30px; } h3 { font-size:30px; } a { text-decoration:none; } .section { font-size:20px; text-align:center; font-weight:700; padding:10px; display:block; border-radius:6px; background:white; border:3px solid hsla(0,50%,50%,1); } .clear { width:100%; height:10px; padding:20px 0; margin-bottom:10px; float:left; } .clear:after { content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; } .clear { display:inline-block; } html[xmlns] .clear { display:block; } * html .clear { height:1%; } .box { display:inline-block; padding:10px; } .box:after { content:" "; width:100%; height:100%; float:left; clear:both; margin:0; padding:0; } strong { font-weight:700; font-size:120%; } div.section-wrap { display:block; height:100%; width:80%; padding:40px; margin:0 auto; border:4px solid hsla(0,50%,50%,1); margin-bottom:70px; border-radius:12px; background:ghostwhite; } body { background:#e5e6e6; } </style> </head> <body> <div id="page-wrap"> <div class="section-wrap"> <div class="box">☮</div> <div class="box">☑</div> <div class="box">✔</div> <div class="box">☠</div> <div class="box">©</div> <div class="box">☙</div> <div class="box">❦</div> <div class="box">№</div> <div class="box">®</div> <div class="box">&</div> <div class="box">?</div> <div class="box">“</div> <div class="box">”</div> <div class="box">“</div> <div class="box">”</div> <div class="box">«</div> <div class="box">»</div> <div class="box">‘</div> <div class="box">’</div> <div class="clear"></div> </div> <div class="section-wrap"> <div class="section"><strong>Arrows</strong></div> <div class="box">←</div> <div class="box">↑</div> <div class="box">→</div> <div class="box">→</div> <div class="box">↓</div> <div class="box">↔</div> <div class="box">↕</div> <div class="box">↵</div> <div class="box">⇐</div> <div class="box">⇑</div> <div class="box">⇒</div> <div class="box">⇓</div> <div class="box">⇔</div> <div class="clear"></div> </div> <div class="section-wrap"> <div class="section"><strong>Weather Elements</strong></div> <div class="box">☀</div> <div class="box">☁</div> <div class="box">☁</div> <div class="box">☁</div> <div class="box">☂</div> <div class="box">☇</div> <div class="box">☈</div> <div class="box">☔</div> <div class="box">☼</div> <div class="box">☽</div> <div class="box">☾</div> <div class="box">℃</div> <div class="box">℉</div> <div class="clear"></div> </div> <div class="section-wrap"> <div class="section"><strong>Astrology</strong></div> <div class="box">☰</div> <div class="box">☱</div> <div class="box">☲</div> <div class="box">☳</div> <div class="box">☴</div> <div class="box">☵</div> <div class="box">☶</div> <div class="box">☷</div> <div class="box">☿</div> <div class="box">♀</div> <div class="box">♁</div> <div class="box">♂</div> <div class="box">♃</div> <div class="box">♄</div> <div class="box">♅</div> <div class="box">♆</div> <div class="box">♇</div> <div class="box">♈</div> <div class="box">♉</div> <div class="box">♊</div> <div class="box">♋</div> <div class="box">♌</div> <div class="box">♍</div> <div class="box">♎</div> <div class="box">♏</div> <div class="box">♐</div> <div class="box">♑</div> <div class="box">♒</div> <div class="box">♓</div> <div class="clear"></div> </div> <div class="section-wrap"> <div class="section"><strong>Music Symbols</strong></div> <div class="box">♩</div> <div class="box">♪</div> <div class="box">♫</div> <div class="box">♬</div> <div class="box">♭</div> <div class="box">♮</div> <div class="box">♯</div> <div class="clear"></div> </div> <div class="section-wrap"> <div class="section"><strong>WingDings</strong></div> <div class="box">♡</div> <div class="box">♢</div> <div class="box">♣</div> <div class="box">♤</div> <div class="box">♥</div> <div class="box">♦</div> <div class="box">♧</div> <div class="box">✓</div> <div class="box">✔</div> <div class="box">✗</div> <div class="box">✘</div> <div class="clear"></div> </div> <div class="section-wrap"> <div class="section"><strong>Fractions</strong></div> <div class="box">¼</div> <div class="box">½</div> <div class="box">¾</div> <div class="box">⁄</div> <div class="box">⅓</div> <div class="box">⅔</div> <div class="box">⅛</div> <div class="box">⅜</div> <div class="box">⅝</div> <div class="box">⅞</div> <div class="clear"></div> </div> <div class="section-wrap"> <div class="section"><strong>Various</strong></div> <div class="box">▲</div> <div class="box">▼</div> <div class="box">♠</div> <div class="box">♣</div> <div class="box">♥</div> <div class="box">☜ ☞</div> <div class="box">☚ ☛</div> <div class="box">☝</div> <div class="box">☟</div> <div class="box">✉</div> <div class="box">✍</div> <div class="box">✎</div> <div class="box">✏</div> <div class="box">✐</div> <div class="box">✑</div> <div class="box">✒</div> <div class="box">☎</div> <div class="box">☏</div> <div class="box">✈</div> <div class="box">♨</div> <div class="box">✂</div> <div class="box">✄</div> <div class="box">☢</div> <div class="box">☣</div> <div class="box">✌</div> <div class="box">㋡</div> <div class="box">㋛</div> <div class="box">☤</div> <div class="box">☕</div> <div class="box">★</div> <div class="box">☆</div> <div class="box">☘</div> <div class="box">☽</div> <div class="box">☾</div> <div class="box">❃</div> <div class="box">❀</div> <div class="box">❁</div> <div class="box">❂</div> <div class="box">⛹</div> <div class="box">✯</div> <div class="box">✠</div> </div> </div> </body> </html>