It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to change the distance between page title and content

Martin Johst Nov 05, 2012

Hello @ all,

is it possible to change/ decrease the dinstance between a page-title and the page-content.

Is there any way with CSS or so?

2 answers

1 accepted

0 votes
Answer accepted
Martin Johst Nov 13, 2012

To change it in all themes the best way is to go to Admin-Space => Look and Feel => Custom HTML.

At end of the HEAD

  <style type="text/css">
  .wiki-content h1{
   margin-top: 0px;
   margin-bottom: 0px;
h1.pagetitle{margin-bottom: -20px; margin-top: -20px;}

#h1.pagetitle is the Pagetitle and the distance to the top
#To change the distance between the first healdline and Pagetitle insert .wiki-content h1 { margin-top: 0px;}

0 votes
Amalia San Nov 06, 2012

You can add the following CSS to Confluence Admin > Stylesheet:

h1.pagetitle {
   margin-bottom: 0px;

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,419 views 11 28
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you