tips:button_align
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:button_align [2017-05-27 22:00] – 88.78.7.121 | tips:button_align [2022-06-29 14:42] (current) – [Example of how to modify CSS] Better description Michaelsy | ||
---|---|---|---|
Line 2: | Line 2: | ||
How to align a < | How to align a < | ||
+ | |||
+ | |||
+ | ==== Variant 1 ==== | ||
One way is to set the CSS property " | One way is to set the CSS property " | ||
Line 12: | Line 15: | ||
But this solution takes effect to other inline elements inside the fieldset (e.g. text) too. :-( | But this solution takes effect to other inline elements inside the fieldset (e.g. text) too. :-( | ||
+ | |||
+ | |||
+ | ==== Variant 2 ==== | ||
An alternative without side-effects on other elements and with more flexibility is to redefine < | An alternative without side-effects on other elements and with more flexibility is to redefine < | ||
Line 17: | Line 23: | ||
<code css> | <code css> | ||
.dokuwiki form.bureaucracy__plugin button { | .dokuwiki form.bureaucracy__plugin button { | ||
- | display | + | display: block; |
- | margin | + | margin: auto; |
} | } | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ==== Example of how to modify CSS ==== | ||
+ | |||
+ | Small CSS changes like this can be made via the [[plugin: | ||
+ | |||
+ | The Advanced plugin edits the file __'' | ||
+ | |||
+ | * **Admin** | ||
+ | * **Additional Plugins** | ||
+ | * **Advanced Configurations** | ||
+ | * **Style** | ||
+ | * **Screen** | ||
+ | * Add the following lines: | ||
+ | * < | ||
+ | / | ||
+ | .dokuwiki form.bureaucracy__plugin button { | ||
+ | display: block; | ||
+ | margin: auto; | ||
+ | } | ||
+ | </ | ||
+ | * **Purge CSS Cache** | ||
+ | * **Touch** Configuration | ||
+ | * **CTRL+F5** - to refresh the browser where you expect the buttons to be centered | ||
+ | |||
+ | ---- | ||
+ | \\ | ||
tips/button_align.1495915259.txt.gz · Last modified: 2017-05-27 22:00 by 88.78.7.121