CSS Question: how to style html.A as a button?

the way i handle this is i just put a button inside the html that does nothing when push but still fires anithing withing the html A
like this:
html.A(
[html.Button(‘SOME TEXT’, className=‘excel’)],
target=’_blank’, download=href_link, id=f’-excel-link’,
href=href_link
)
this way you can have a html A that looks like a button.
and one you have this button you can just add a style parameter or a css class should work
hope this help

2 Likes