Select to view content in your preferred language

Setting zIndex for dijit/form/button

3454
11
Jump to solution
08-29-2013 11:57 AM
by Anonymous User
Not applicable
Is it possible using the following syntax? Seems to have no effect

<button id="locate" data-dojo-type="dijit/form/Button" data-dojo-props="zIndex: 900">Locate</button>

Thanks!

rGibson
0 Kudos
11 Replies
by Anonymous User
Not applicable
No need to set z-index for button here. What makes you want to set z-index? In addition, just learnt today that z-index only works for positioned elements. Please refer to http://coding.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/.

<button id="locate" data-dojo-type="dijit/form/Button">Locate</button>

I can display the button without any problem. See http://jsfiddle.net/4Dm7y/.


Interesting.....the button doesn't appear on my app.

Thanks again for all your help, Jason.
0 Kudos
by Anonymous User
Not applicable
No need to set z-index for button here. What makes you want to set z-index? In addition, just learnt today that z-index only works for positioned elements. Please refer to http://coding.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/.

<button id="locate" data-dojo-type="dijit/form/Button">Locate</button>

I can display the button without any problem. See http://jsfiddle.net/4Dm7y/.


Ugh....found the offending code in the CSS. Thanks again for your help, Jason.

.claro .dijitButtonNode
    {
     background-color: transparent !important;
  background-image: none !important;
  border: 0px !important;
    }
0 Kudos