pseudo-element
::file-selector-button — CSS reference
Styles the file chooser button within a file input, not the entire control. Native control behavior and user-agent defaults still apply; preserve the label and keyboard access.
Formal Syntax & Structure
css syntaxcss
input[type=file]::file-selector-button { color: teal; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a::file-selector-button {color:#006050;background-color:#eaf5ef}</style><body><label for="a">Choose a document</label><input type="file" id="a"></body></html>