Format PDF Button

Format PDF Button

sr22sr22 Posts: 8Questions: 4Answers: 0

Hello guys.

I used Datatables on my page and it works perfectly.
Now I want to style the PDF button that it fits into my page.
My problem is that I'm not able to style the :hover attribute for my button.
I tried it in the buttons.dataTables.min.css already but I cant figure out what class is needed.

Thank you for your help!

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    div.dt-buttons a.dt-button probably. Unless you are using one of the styling compatibility libraries.

    Allan

  • sr22sr22 Posts: 8Questions: 4Answers: 0

    already tried this but no reaction.

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    Can you link to the page in question in that case please. Its possible you are using a styling package which would alter the selector required.

    Allan

  • sr22sr22 Posts: 8Questions: 4Answers: 0
    edited September 2017

    Hi allan.

    At this moment I'm not able to share the site because it's on a local server in my company.

    Putting the whole code in a fiddle is not very useful because the data is read from db and so on.

    If I put the div.dt-buttons a.dt-buttons:hover in the local stylsheet it should be overwridden or am I wrong?

    Simon

  • kthorngrenkthorngren Posts: 21,308Questions: 26Answers: 4,947

    Maybe you can put together a test case with your styling setup, etc. To see why the PDF button isn't styled as desired is independent of your data.

    Kevin

This discussion has been closed.