summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libweb.css5
-rw-r--r--test.html1
2 files changed, 6 insertions, 0 deletions
diff --git a/libweb.css b/libweb.css
index 50e9b68..127b56f 100644
--- a/libweb.css
+++ b/libweb.css
@@ -148,6 +148,11 @@ button {
border-radius: 0.5em;
}
+button a {
+ color: inherit;
+ background-color: inherit;
+}
+
img {
margin-top: var(--vertical-space-medium);
margin-bottom: var(--vertical-space-medium);
diff --git a/test.html b/test.html
index 68ff6be..190d9e8 100644
--- a/test.html
+++ b/test.html
@@ -85,6 +85,7 @@ contact via mail: me@xengineering.eu
<!-- button -->
<button>button</button>
+ <button><a href="https://example.com">button as link</a></button>
<!-- img -->
<img src="./demo.png" alt="An example image">