Forms and Blocks
Permalink
Hi,
I've built some custom widgets such as an image uploader that I would like to integrate in c5.
If you think about an image uploader, you have a BROWSE button to retrieve a photo, an UPLOAD button and in my case a SAVE button.
My question is, if I embed all of the custom php into one block, how would I be able to adjust the CSS for each of these buttons?
I've built some custom widgets such as an image uploader that I would like to integrate in c5.
If you think about an image uploader, you have a BROWSE button to retrieve a photo, an UPLOAD button and in my case a SAVE button.
My question is, if I embed all of the custom php into one block, how would I be able to adjust the CSS for each of these buttons?
Check that howto here :http://www.concrete5.org/documentation/how-tos/developers/creating-...
Then in your view.php, just add the style within a style tag, something like this (before rendering your image) :
Another simple approach, is simply to use the "Design" feature onto the block when you just added it, and customize the css (last tab of the designer menu).