Hi, I've made my first widget and wanted to change the style of some elements, such as a button but I can´t get any results.
My html code for the "Consulta" button of the image is:
and its css:
Sorry but my level of developing widgets is low and I'm sure I'm making a lot of mistakes.
Solved! Go to Solution.
Your css rule should be:
Which would mean that the id of the element is boton and that is not the case for your code "boton" is the class name. Dot is for class and # is for id.
The left property in the css rule will never work if you do not add the property position and set it to absolute.
Hi Robert, Thanks for your help, but i tried this and this didn´t work. I think that in WAB I need use the dojo propierties for do this. What is your opinion?
I personally tested that in a widget to make sure that it worked... Yes I never use an elements id in my widget.html, that is what data-dojo-attach-point is for.