Browse Source

More efficient selector

- The width was being forced on the wrapping anchor block element with
the goal of resizing the image to 40x40px. Now utilizes a "more proper"
selector by forcing the width and height of the actual image element and
also now uses the max- prefix for the very rare scenario of an avatar
being smaller.
Matthew Kerle 12 years ago
parent
commit
e2f57699d8
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Themes/default/css/index.css

+ 2 - 3
Themes/default/css/index.css

@@ -1478,12 +1478,11 @@ ul li.greeting {
 #inner_wrap a.avatar {
 	float: left;
 	margin: 0 10px 5px 0;
-	width: 40px;
 }
 /* No more huge avatars up top. YAY! */
 #inner_wrap a.avatar img {
-	height: 100%;
-	width: 100%;
+	max-width: 40px;
+	max-height: 40px;
 }
 /* News section. */
 #inner_wrap .news {