Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ylchuang
Contributor II
Contributor II

Add padding except buttons and text objects?

I'd like to add more padding to the objects except for buttons and text objects.

I tried adding a padding of 10px to qv-inner-object as below, but this will also add padding to buttons and text objects which made the content too small. 

.qv-inner-object {
border: 1px rgba(0,0,0,0);
padding: 10px;
}

 

The built-in Sense Focus theme seems to be able to add padding to chart objects while bypassing buttons and text objects. Anyone knows how to replicate the same behavior in theme?

1 Solution

Accepted Solutions
ylchuang
Contributor II
Contributor II
Author

Answering own question in case anyone wanna do the same.

I ended up adding padding to individual chart types instead while leaving buttons untouched, so only charts have padding.

For example,

/* padding for line chart */

.qv-object-linechart {
padding-right: 25px;
padding-bottom:5px;
}

/* padding for combo chart */

.qv-object-combochart {
padding-top: 10px;
padding-left:25px;
padding-bottom: 5px;
}

View solution in original post

1 Reply
ylchuang
Contributor II
Contributor II
Author

Answering own question in case anyone wanna do the same.

I ended up adding padding to individual chart types instead while leaving buttons untouched, so only charts have padding.

For example,

/* padding for line chart */

.qv-object-linechart {
padding-right: 25px;
padding-bottom:5px;
}

/* padding for combo chart */

.qv-object-combochart {
padding-top: 10px;
padding-left:25px;
padding-bottom: 5px;
}