How do you show the Keyboard *symbols* on my own confluence pages?

This question is in reference to Atlassian Documentation: Confluence Wiki Markup

How do you show the Keyboard *symbols* on my own confluence pages?

Like the nice ones shown here:!default.jspa

2 answers

This is done with a combination of CSS and HTML.

Start with a CSS macro (or edit the Look and Feel):

kbd > kbd {
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
  border-radius: 3px;
  padding: .1em .7em;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
  background-color: ;
  display: inline-block;
  margin: 0 .1em;
  white-space: nowrap;
  font-size: 1em;

Then wrap the key letters and words in HTML:


image2015-11-11 16:16:35.png

This will give the same look:

image2015-11-11 16:18:32.png

Thanks @Milo Grika for the swift reply.

I'm a relative newbie on Confluence editing, and have given this a go.

On editing my Confluence page, I proceeded to...

  1. INSERT -->Other Macros --> search for  'CSS' --> Select 'CSS Stylesheet'
  2. Pasted in your text as above into the CSS Stylesheet that appeared
  3. INSERT -->Other Macros --> search for 'HMTL' --> found some suitable results and tried selecting 'HMTL comment
  4. Pasted in  '<kbd><kbd>K</kbd></kbd>' into the HTML Comment that appeared
  5. Save the page

    Result = Nothing new appears on the page.

Am i doing the wrong thing?

How does one 'edit the look and feel' please? 


Thanks for your help

First off, you need to use the HTML and exactly the HTML macro. The HTML macro is disabled by default and has to be manually enabled:

image2015-11-12 9:1:14.png --> Add-ons --> image2015-11-12 9:3:2.png --> Confluence HTML Macros --> image2015-11-12 9:4:42.png --> HTML --> Enable


Look and Feel changes can be done both Space specifically or site wide:

Site: image2015-11-12 9:1:14.png --> LOOK AND FEEL --> Stylesheet

Space: Space tools --> Look and Feel --> Stylesheet


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,777 views 25 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you