I need code block with dashed line.

PROBLEM
--------------
When I insert a code block, it gives me a solid line.  How can I convert that solid line border of the code block to dashed line?  Thank you in advanced. 

2 answers

0 vote
Daniel Wester Community Champion Mar 28, 2015

Are you using the code macro? If you can give more details?

I do:

Edit Page 
Insert Menu Button
Other Macros
Code Block
Insert
Now, I get a code block that has a solid line - I prefer the dashed line which is easier on the eyes.  Thanks & Best.

Any ideas? Best.

Daniel Wester Community Champion Mar 29, 2015

The only thing you can try is to change the Theme: https://confluence.atlassian.com/display/DOC/Code+Block+Macro Since you're using Confluence Cloud you can't change the css. :(

0 vote
Stephen Deutsch Community Champion Mar 29, 2015

Actually, I found that you can change the CSS for a single page if you want since the Content Formatting Macros (which should be included in your instance) contain the CSS Stylesheet macro.  Just put the following inside the CSS macro on the same page as the code macro:

div.code {
  border-style: dashed !important;
}

And then the code block should show with a dashed line.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

72 views 0 11
Read article

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