diff --git a/ldoc/html/ldoc_css.lua b/ldoc/html/ldoc_css.lua
index 1724909..157f1a6 100644
--- a/ldoc/html/ldoc_css.lua
+++ b/ldoc/html/ldoc_css.lua
@@ -287,6 +287,11 @@ ol ul { margin-top: 0px; }
ol ol { margin-top: 0px; }
ul ol { margin-top: 0px; }
+/* make the target distinct; helps when we're navigating to a function */
+a:target + * {
+ background-color: #FF9;
+}
+
/* styles for prettification of source */
pre .comment { color: #558817; }
pre .constant { color: #a8660d; }
diff --git a/ldoc/html/ldoc_pale_css.lua b/ldoc/html/ldoc_pale_css.lua
index 23d1d01..edae358 100644
--- a/ldoc/html/ldoc_pale_css.lua
+++ b/ldoc/html/ldoc_pale_css.lua
@@ -286,6 +286,11 @@ ol ul { margin-top: 0px; }
ol ol { margin-top: 0px; }
ul ol { margin-top: 0px; }
+/* make the target distinct; helps when we're navigating to a function */
+a:target + * {
+ background-color: #FF9;
+}
+
/* styles for prettification of source */
pre .comment { color: #558817; }
pre .constant { color: #a8660d; }