Is there a standard solution to realize the following?
A page element (like a div or p element) is not displayed
in browsers that do not support CSS or when the access to
CSS resources is denied.
But when the browser supports CSS and the CSS resource is
accessible, then the CSS resource contains rules which then
will make this element visible.
Sounds like you want the new "hidden"
attribute. Visit: >https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute
Is there a standard solution to realize the following?
A page element (like a div or p element) is not displayed
in browsers that do not support CSS or when the access to
CSS resources is denied.
But when the browser supports CSS and the CSS resource is
accessible, then the CSS resource contains rules which then
will make this element visible.
On 04/12/2019 14:31, Stefan Ram wrote:
Is there a standard solution to realize the following?
No there isn't anything like what you want to do because anything on an
HTML page is visible by default. You can then use css to hide them but there isn't anything that can hide the text by default and only visible
when css is enabled. Never seen anything like that.
Stefan Ram wrote:
Is there a standard solution to realize the following?
A page element (like a div or p element) is not displayed
in browsers that do not support CSS or when the access to
CSS resources is denied.
But when the browser supports CSS and the CSS resource is
accessible, then the CSS resource contains rules which then
will make this element visible.
Sounds like you want the new "hidden"
attribute. Visit: https://html.spec.whatwg.org/multipage/interaction.html#the-hidden-attribute
Never used it myself, so I cannot help you
further.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (3 / 13) |
Uptime: | 10:23:07 |
Calls: | 6,645 |
Calls today: | 5 |
Files: | 12,190 |
Messages: | 5,326,492 |