applying css to dijit button
Posted
by peirix
on Stack Overflow
See other posts from Stack Overflow
or by peirix
Published on 2010-06-16T10:07:24Z
Indexed on
2010/06/16
10:52 UTC
Read the original article
Hit count: 261
I have the following HTML and CSS:
<button id="myBtn" dojoType="dijit.form.Button">Testing</button>
#myBtn {
margin-left: 100px;
}
The CSS is supposed to push the button in 100px
. But since dijit
applies some extra layers of HTML around the button, the button gets a 100px
padding.
edit: Found one (not IE6-compatible) solution:
[widgetid=myBtn] { margin-left: 100px; }
© Stack Overflow or respective owner