diff --git a/lib/rdoc/generator/template/rails/_context.rhtml b/lib/rdoc/generator/template/rails/_context.rhtml
index f35fcd8e..85db6e81 100644
--- a/lib/rdoc/generator/template/rails/_context.rhtml
+++ b/lib/rdoc/generator/template/rails/_context.rhtml
@@ -108,7 +108,7 @@
<% unless attributes.empty? %>
Attributes
-
+
diff --git a/lib/rdoc/generator/template/rails/resources/css/main.css b/lib/rdoc/generator/template/rails/resources/css/main.css
index c2564735..8d47f1ed 100644
--- a/lib/rdoc/generator/template/rails/resources/css/main.css
+++ b/lib/rdoc/generator/template/rails/resources/css/main.css
@@ -279,6 +279,10 @@ pre
.attr-desc {
}
+.attr-link {
+ position: relative;
+}
+
tt {
font-size: 1.15em;
}
@@ -342,7 +346,7 @@ tt {
position: relative;
}
-.method a.permalink {
+.method a.permalink, .attr-link a.permalink {
position: absolute;
font-size: 0.9em;
right: 0;