Tuesday, February 2, 2016

Blogger customized CSS and HTML examples

This article shows the examples of customized CSS and HTML used by this blog.

1. "Older Posts" and "Newer Posts" pager

CSS:
 #blog-pager{clear:both;margin:30px auto; padding: 7px; text-align:center;font-size: 18px;background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #000000),color-stop(1, #292929));background-image: -o-linear-gradient(top, #000000 0%, #292929 100%);background-image: -moz-linear-gradient(top, #000000 0%, #292929 100%);background-image: -webkit-linear-gradient(top, #000000 0%, #292929 100%);background-image: -ms-linear-gradient(top, #000000 0%, #292929 100%);background-image: linear-gradient(to top, #000000 0%, #292929 100%); padding: 6px;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;}
.blog-pager {background: none;}
.displaypageNum a,.showpage a,.pagecurrent{padding: 3px 10px;margin-right:5px; color: #fff;}
.displaypageNum a:hover,.showpage a:hover,.pagecurrent{background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #59A2CF),color-stop(1, #D9EAFF));background-image: -o-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: -moz-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: -webkit-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: -ms-linear-gradient(top, #59A2CF 0%, #D9EAFF 100%);background-image: linear-gradient(to top, #59A2CF 0%, #D9EAFF 100%);text-decoration: none;color: #000;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;}
.showpageOf{display:none!important}.blog-pager-older-link, .home-link, .blog-pager-newer-link {background: transparent;}
a.blog-pager-older-link, a.home-link, a.blog-pager-newer-link {color: #fff;}
#blog-pager .pages{border:none;background: none;}
Example:

2. Navigation bar

CSS:
#cssmenu,#cssmenu ul,#cssmenu ul li,#cssmenu ul li a{padding:0;margin:0;line-height:1;font-family:'Capriola',sans-serif}#cssmenu:before,#cssmenu:after,#cssmenu > ul:before,#cssmenu > ul:after{content:'';display:table}#cssmenu:after,#cssmenu > ul:after{clear:both}#cssmenu{zoom:1;height:69px;background:url(http://3.bp.blogspot.com/-q-XvJW6E8UQ/UjqlYe4p-aI/AAAAAAAABgU/30PbHrDWLyk/s1600/bottom-bg.png) repeat-x center bottom;border-radius:2px;width:auto}#cssmenu ul{background:url(http://1.bp.blogspot.com/--FRGZcIN7Ms/UjqlYSABj8I/AAAAAAAABgI/uhc6p7pzQKc/s1600/nav-bg.png) repeat-x 0 4px;height:69px}#cssmenu ul li{float:left;list-style:none}#cssmenu ul li a{display:block;height:37px;padding:22px 30px 0;margin:4px 2px 0;border-radius:2px 2px 0 0;text-decoration:none;font-size:15px;color:white;text-shadow:0 1px 1px rgba(0,0,0,0.75);font-weight:400;opacity:.9}#cssmenu ul li:first-child a{margin:4px 2px 0 0}#cssmenu ul li a:hover,#cssmenu ul li.active a{background:url(http://3.bp.blogspot.com/-b7SFqlPk6BI/UjqlYcQJAKI/AAAAAAAABgE/S2G6z7sFDyY/s1600/color.png) center bottom;display:block;height:37px;margin-top:0;padding-top:26px;color:#9b4106;text-shadow:0 1px 1px rgba(255,255,255,0.35);opacity:1}
HTML:
<!-- customize your menus Links -->
<div id="cssmenu">
<ul>
<li class="last"><a href="http://www.openkb.info"><span>Home</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/Hadoop"><span>Hadoop</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/MapR"><span>MapR</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/drill"><span>Apache Drill</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/Spark"><span>Apache Spark</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/Impala"><span>Impala</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/JAVA"><span>JAVA</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/OS"><span>OS</span></a></li>
<li class="last"><a href="http://www.openkb.info/search/label/cheat%20sheet"><span>cheat sheet</span></a></li>
<li class="last"><a href="#"><span>Contact</span></a></li>
</ul></div>
Example:

3. Copyright notice

HTML:
<div style='text-align: center;'>© 2016 <a href="http://www.openkb.info">OPENKB.INFO</a> ALL RIGHTS RESERVED.</div>
Example:

4. Search inside OpenKB.info

HTML:
<style>
#searchbox {
    background: url(http://2.bp.blogspot.com/-Un3z-hkw1XA/VD0V9GO8zrI/AAAAAAAAAf0/ww_5VsvWayY/s1600/search-box1.png) no-repeat;
    width: 250px;
    height: 65px;
}

input:focus::-webkit-input-placeholder {
color: transparent;
}

input:focus:-moz-placeholder {
color: transparent;
}

input:focus::-moz-placeholder {
color: transparent;
}

#searchbox input {
    outline: none;
}

#searchbox input[type="text"] {
    background: transparent;
    padding: 5px 0px 5px 20px;
    margin: 10px 15px 0px 0px;
    border-width: 0px;
    font-family: "Arial";
    font-size: 12px;
    color: #595959;
    width: 65%;
    font-weight: bold;
    display: inline-table;
    vertical-align: top;
}

#button-submit {
    background: url(http://1.bp.blogspot.com/-zyJC7B-dSaU/VDv8-68fNJI/AAAAAAAAAe0/pkUajFr2kcQ/s1600/magnifier.png) no-repeat;
    border-width: 0px;
    cursor: pointer;
    margin-top: 10px;
    width: 19px;
    height: 25px;
}

#button-submit:hover {
    background: url(http://1.bp.blogspot.com/-pIwlQno5_6U/VDxR9OdzvYI/AAAAAAAAAfM/YDBC2P705tc/s1600/magnifier-hover.png) no-repeat;
}

#button-submit:active {
    background: url(http://1.bp.blogspot.com/-pIwlQno5_6U/VDxR9OdzvYI/AAAAAAAAAfM/YDBC2P705tc/s1600/magnifier-hover.png) no-repeat;
    outline: none;
}

#button-submit::-moz-focus-inner {
    border: 0;
}
</style>

<form id="searchbox" method="get" action="/search" autocomplete="off">
    <input class="textarea" name="q" type="text" size="15" placeholder="Search here..." />
    <input id="button-submit" type="submit" value="" />
</form>
Example:

5. World Clocks

HTML:
San Jose,US :<iframe src="http://free.timeanddate.com/clock/i51uxb20/n283/fn7/fc00f/tt0/tw1/tm3/td2/th1/ta1" frameborder="0" width="234" height="21"></iframe><br />
Beijing,China:<iframe src="http://free.timeanddate.com/clock/i51uxb20/n33/fn7/fc00f/tt0/tw1/tm3/td2/th1/ta1" frameborder="0" width="235" height="21"></iframe>
Example:

==

No comments:

Post a Comment