stblink VIP
Total posts: 501
24 Jun 2013 15:00

I can't style the "browse" button? This is the single image upload field.

For what i've seen it appears that the input and button are the same element and therefore can't be styled?

Last Modified: 02 Mar 2014


pepperstreet VIP
Total posts: 3,837
24 Jun 2013 18:47

As usual, this form element is a real pain in the ...

You may find a discussion some useful infos here

One of the comments explains a trick with a hidden field.

On the other hand they also mention the well-known JASNY fork of Bootstrap. This already includes a pretty upload. Unfortunately, it seems to be merged with bootstrap. I have posted a question on the GitHub project, if it is possible to use a separate version of the upload modification.


stblink VIP
Total posts: 501
24 Jun 2013 19:18

Thanks! i will have a look at it


pepperstreet VIP
Total posts: 3,837
25 Jun 2013 18:28

Sorry, for my quick and somewhat wrong conclusion ;-)

I thought, the single upload is a Cobalt field and pure bootstrap. Actually it is a J! form-field...

So, I am not sure if the JASNY method and style is applicable at all. Maybe you can see and find similarities?

BTW, the JASNY js and css is available as a single download. And can be added to an existing bootstrap install. Good luck, would be nice to here from you on success ;-)


stblink VIP
Total posts: 501
25 Jun 2013 18:49

thanks!

Powered by Cobalt