Way to add keyboard shortcut key on blogger post |
The solution of this option is to use CSS coding thus you can display keyboard key image by using simple CSS code. Here I will display 2 type of key style light and dark. So let's proceed to the tutorial-
1. Light color keyboard style key symbol
For integrating CSS code of light color key symbol you can follow the below steps-
Step 1 Sign in to your blogger account and go to blogger dashboard
Step 2 On Blogger Dashboard Click >Template > Edit HTML
Step 3 Now find the ]]></b:skin> by pressing Ctrl+F (Windows) or CMD+F (Mac)
Step 4 Paste the below CSS code above ]]></b:skin> and hit the Save template button.
kbd{
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;
}
How to Implement the light color code in post
After adding the CSS code now we will make the code work in blog post. So to do this just follow the below steps-
Step 1 Sign in to your blogger account and go to blogger dashboard
Step 2 On Blogger Dashboard Click >New post
Code For Post |
Step 3 Now switch the post editor in HTML mode then copy and paste any code from below
- <kbd>Ctrl</kbd>+<kbd>F</kbd>
- <kbd>Ctrl</kbd>+<kbd>C</kbd>
- <kbd>Ctrl</kbd>+<kbd>V</kbd>
DEMO LIGHT |
2. Dark color keyboard style key symbol
Do Not Use The Fast Css Use This Css For Dark Color Keybord Style Key Symbol.
Css
Css
kbd{
border:1px solid gray;
font-size:1.2em;
box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #4d4d4d, 0 2px 0 3px #444;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
margin:2px 3px;
padding:1px 5px;
}
DEMO DARK |
- You can customize the key letter by changing Ctrl and F. You can write anything you like.
- To change the color just replace the color code from
-box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #ccc, 0 2px 0 3px #444;
or
-box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #4d4d4d, 0 2px 0 3px #444;
If you have any query regard this then feel free to leave a comment below. Hopefully I will reply you as soon as possible. Thanks.
0 Comments: