When generating a PDF form from an HTML form (with form fields enabled), I can't seem to figure out how to set the border and background colors for a checkbox. The properties "background-color" and "border-color" appear to be respected for text inputs, but not for checkbox inputs.
i.e., this works:
... but this doesn't:
The resulting checkbox in the PDF form always has a white background and a medium grey border. The element is recognised as a checkbox field by Adobe Acrobat, and I can manually set its background and border colour to the desired values within Acrobat with no difficulty – it's just the initial output produced by Prince that seems to have fixed colours.
Is there some other CSS attribute I should be using to achieve this effect?
i.e., this works:
input[type=text] {
background-color: blue;
border-color: red;
}
... but this doesn't:
input[type=checkbox] {
background-color: blue;
border-color: red;
}
The resulting checkbox in the PDF form always has a white background and a medium grey border. The element is recognised as a checkbox field by Adobe Acrobat, and I can manually set its background and border colour to the desired values within Acrobat with no difficulty – it's just the initial output produced by Prince that seems to have fixed colours.
Is there some other CSS attribute I should be using to achieve this effect?