Add Keyboard Keys Effect To Your Text in Blogger with CSS

For many of us the design and the template are the most important, making our readers be more interested and coming back to our blog. In this tutorial, I will show you how to create a keyboard keys effect only with CSS. It is not necessary to add an image, so that your blog will load faster.

how to add keyboard keys with css in blogger

How to Add Keyboard Keys to Blogger

Step 1: From Blogger Dashboard, go to Template > Edit HTML

edit the html of blogger template

Step 2: Look for this line (Ctrl + F)
Click on the arrow to expand the code

Step 3: Just above ]]></b:skin> paste this CSS code:

border:1px solid gray;
box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #ccc, 0 2px 0 3px #444;
margin:2px 3px;
padding:1px 5px;
Step 4: Save the change made.

Now the only thing left to do is adding the tags to the desired text to make it look as it would be inside of the keyboard keys.

For this you need to create a new post, write the text on which you want to apply the style and then switch to HTML - where you have to add before and after it, the following HTML tags:

<kbd>Ctrl</kbd> + <kbd>F</kbd>
text with keyboard key effect

And, it will be visible in your post as: Ctrl + F

0 komentar:

Post a Comment