turnermm wrote
It may or may not matter to the Original Poster's template layout whether or not the OP uses the one or the other. But at least now he/she knows there is a difference.
Agreed.
Both properties "appear" to do the same thing, and each has a distinct use case. Knowing why to pick one is better than just picking one.
Display is the one that bites if misused. Even when it doesn't damage layout it can lay in wait for future opportunities to do so, like absolute internal URLs - in my experience it's caused a number of spaghetti wrestling CSS nightmares with legacy code. It's best to avoid using inheritable properties to modify a single element. Computationally
visibility is lighter.
If those are the only HTML/CSS customisations the OP intends to make, then using the
display property doesn't
seem likely to cause problems e.g. responsive layout distortion. Having only spent a short time looking at the code I can't guarantee that - depending on the plugins there can be over 2500 selectors with the default template (the example I checked only makes use of 533 of those). Kudos to the designers - it's very nice.
Any idea why
userstyle.css is not part of the default official Dokuwiki?
(Note: the OP has edited their post where they asked where to find
userstyle.css and
style.ini).
Kind regards