javascript - How to center a dojo gauge -


I want to create the position of a gauge in the center of the page. Currently I "margin-left: 130px;" But then it appears differently on different devices. If I use "margin: 0 px auto;" (Which works for the html table for example) it does not work. Is there something "clever" to do this? Thank you,

I do not think this dojo is unique, but more than a CSS question. to answer your question; You can try the position of the gauge with the position: complete, and set all offset to 0, like this:

  Status: Absolute; Border: 0 pixels; Left: 0; Correct: 0; Top: 0; Bottom: 0; Margins: Auto;   

The HTML element (for example a div) that has a gauge, should be relative then.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -