Vlad
Vlad

Reputation: 3764

R Shiny: downloadButton styling and icon

Is there a way to change the icon or at least control the padding of the downloadButton in Shiny?

I've already tried setting the class:

downloadButton("html_link", label = NULL, class = "download_this")

Then in CSS:

.download_this{
    height:40px;
    width:57px;
    color:blue;
    padding-top: 3 !important;
}

This changes the size and color, however for some reason the padding doesn't work on the icon and it appears too high on the button.

Upvotes: 2

Views: 3307

Answers (1)

xtluo
xtluo

Reputation: 2121

It seems like an error in your .css , css padding generates space around content, 3 means nothing to css, try:

padding-top: 3px

Upvotes: 3

Related Questions