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

SQL Marco fixing the position of the header row & 1st left column

Dear all,

I am using SQL marco inside wiki's page, however, is it possible to fix the 1st row (header) and the 1st left column?

The SQL query like here:

MAX(IF(LABEL='x64 / x86',STRING_VALUE,NULL)) AS 'x64 / x86',

9 answers

I have found out I can edit global CSS, however is there a way to put a CSS for a specific page?

Not sure what you mean by fixing. For a specific page, use the css/style macro's front Content formatting plugin

@Bob Swift, thank you for getting back to me on this. I have found a way to embed CSS on the page, however due to the fact this table was done by the SQL query, I can't style the header row the way I wanted. Ideally I wanted to fix the header row where it just stays regardless eihter you scoll up or down the page. Currently if you scroll down the page, the header row disppears. Hopefully this makes more sense.

Ah, having the header row fixed while scrolling. I do not know how to do that with the current implementation.

@Bob Swift, I have found out a way to fix the header row while scrolling via CSS. However, I need to put an extra <div> in place to achieve this, however I am restricted by the control I have on the HTML output by SQL query marco. Is it possible to have more control on the SQL macro's HTML output?

You have Common table capabilities which allows you to set the class of the table, perhaps that will work. You can also use the div macro.

@Bob Swift, it is not the whole table we wanted to modify. We just want to add a <div> on the header row. So I can apply CSS on this <thea> div



The only options you have are css on the table :(.

Thank you Bob.

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 Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

161 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