Phoenix form styling problem

Hi, I made a form on phoenix and I am trying now to set the style with css.

...
<div class="form-group">
        <%= file_input f, :url, multiple: true, class: "form-control1" %>
        <%= error_tag f, :url %>
      </div>
...

So the form is working perfectly and the styling is going well except that part.
file_input generates automatically a container that contains a button and some text. I couldn’t find a way to reach that button via css.
Any ideas?

:wave:

It seems to render <input type="file">, so it would be difficult to style that. Try hiding the input and styling its label instead.

3 Likes