Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CSS styling for SQL Query Macro - header text colour

K H May 22, 2018

Hey there,

 

I am having a huge problem changing the colour of the text for my column headers!

 

I'm using the Bob Swift SQL Query macro. Within this there is a space for styling columns and rows (see image A). I need to change the colour of the text (see image B) in my table header.

 

Can someone please tell me how to do this? I have searched the internet for help but can't find what I am looking for, how can I do this in the box provided? I do not know how to lead the code to specifically target the text.

 

I can answer any questions as best I can, but as you can tell I am new to CSS! Any help is greatly appreciated!

 

Image A

question AC.JPG

Image B

question C.JPG

 

Thank you!

K

 

1 answer

1 vote
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2018

Yes, their documentation assumes a lot of knowledge, is really sparse in this area -- and I am CSS literate. ;-) This page has more details for all table formatting.

https://bobswift.atlassian.net/wiki/spaces/TBL/pages/9699337/Common+Table+Capabilities

I am going to assume you want to modify the heading row. So you want to enter CSS code in the Row Styles field. Each format is just a list of CSS properties, separated by semicolons. Code for each row is separated by commas.

So the change the text color to white, enter

color:#FFFFFF;

If you want to change both color and font size for the heading row:

color:#FFFFFF;font-size: 18px;

 If you wanted to change the format of the third row only

,,
color:#FFFFFF;font-size: 18px;

A good resource on CSS is:

https://www.w3schools.com/Css/css_intro.asp

Hope this helps!

K H May 31, 2018

Thank you Bill!

 

I have written a user macro with CSS styles to allow me to change what I need. It is good to know I can make these changes in the existing macros!

 

Thanks again,

K H

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events