You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am wondering if a background image can be added to ones Confluence space?
Sure, you can do that by using CSS modifications.
Here's what you can do:
1. On the page where you want to change the background, add a macro that allows mofidying HTML code of a rendered page.
You can choose from:
2. Attach your background image to the page.
3. In the image dialog right-click the added background image and select Copy the image URL from the context menu.
Alternatively, insert the attached image to the page, save the edits and then copy the image URL as you normally do on the web using your browser (right-click the inserted image and copy its URL location). When copied, you can delete the inserted background (but leave the attachment).
4. Insert the following code inside the added Markdown or HTML macro
<style> #main { // background-color: lightblue !important; background-image: url("https://example.net/wiki/download/thumbnails/123456/background.jpg") !important; background-size: 100% 100%; </style>
This is the identifier of the page canvase where Confluence displays the page text. It's the CSS selector for the main ID.
This line sets the backround-color if your image is transparent.
// background-color: lightblue !important;
Following line adds the attached background:
background-image: url("https://example.net/wiki/download/thumbnails/123456/background.jpg") !important;
The !important flag at the end is the rule that overrides other background-image properties should they be applied to the page (unless they also have this rule applied to them).
Finally, this line stretches and fills the added background image across the full canvas drawn by the main element.
background-size: 100% 100%;
I believe you can also to that by JScript but I feel that using CSS will be preferrable (it's handled first, you won't need the page to draw and finish loading).
If you need to apply this image to every page in your space, you can do one of the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nur für mich als Zusatzfrage dazu: Wird dadurch der Hintergrund (Bild etc.) für die gesamte Website aktiv? Oder z.B. in Confluence nur für die Seite und die Sidebar bleibt unberührt?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Elizabeth,
I believe it's not possible. Colors and themes, yes.
Victor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.