The Blog Contains Information About Blogging. It has Blogger Widgets, templates and Much More About Blogging.

Thursday 7 November 2013

Keyboard Keys
Its time to make your blog posts more stylish. I had seen many blogs that write about computers and technology. Many blogs uses normal text to highlight those keyboard keys. Some blogs uses images to highlight keyboard keys but this decreases blog loading time because images takes a lot of time to load. We have developed a cascading style sheet code to add keyboard keys in blog posts.
Why you should highlight keyboard shortcuts
Every single day bundles of blogger templates releasing with unique stylish designing. So to make your blog more stylized we have to analyze each and every corner of our blog. By adding this widget in your blog, your blog post will be more understandable.

How To Add Keyboard Keys

These keyboard keys are available in four different styles. Choose your style:
Style 1:

Control+Alt+BOC

Code:
bockey{
border:1px solid gray;
font-size:1.2em;
box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #ccc, 0 2px 0 3px #444;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
margin:2px 3px;
padding:1px 5px;
}
Style 2:

Control+Alt+BOC

Code:
bockey {
border: 1px solid rgb(102, 255, 0);
font-size: 1.2em;
box-shadow: 1px 0 1px 0 #E9CE3E, 0 2px 0 2px #82A88B, 0 2px 0 3px #444;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
margin: 2px 3px;
padding: 1px 5px;
}
Style 3:

Control+Alt+BOC

Code:
bockey {
border: 1px solid rgb(255, 0, 0);
font-size: 1.2em;
box-shadow: 1px 0 1px 0 #F10505, 0 2px 0 2px #FF0000, 0 2px 0 3px #F00;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
margin: 2px 3px;
padding: 1px 5px;
}
Style 4:

Control+Alt+BOC

Code:
bockey {
border: 1px solid rgb(0, 20, 255);
font-size: 1.2em;
box-shadow: 1px 0 1px 0 #2B05F1, 0 2px 0 2px #C200FF, 0 2px 0 3px #F00;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
margin: 2px 3px;
padding: 1px 5px;
}

For adding keyboard keys, we are going to use a cascading style sheet code developed in CSS3. You have to add the code given above in your blog template.

  1. Go To Blogger Dashboard:
  2. Go to Template >> Edit Html:
  3. Now search for "]]></b:skin>"
  4. Click on Arrow Option to expend
  5. Now paste the code you have chosen above"]]></b:skin>"
 Now whenever you will write a post, you need to add <kbd> </kbd> tags in html source of your blog post. For example, if you want to make control key highlighted then the code will be
<bockey>Control</bockey>
Keyboard Keys
Replace the underlined part with the key you want. See the Example Given Below
Example 1:
Control+Alt+BOC
Html code:
<bockey>Control</bockey>
<bockey>+</bockey>
<bockey>Alt</bockey>
<bockey>+</bockey>
<bockey>Delete</bockey>

Example 2:
Alt+tab
html code:
<bockey>Alt</bockey>
<bockey>+</bockey><bockey>tab</bockey>

Please leave your comments below.
Posted by John Peter on 19:01 | No comments | Categories: ,

0 comments:

Post a Comment

Powered by Blogger.

Blog Archive

Blog Archive

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Text Widget

Sample Text

Download