diff --git a/core/themes/seven/page.tpl.php b/core/themes/seven/page.tpl.php
index b9d0ad5..dd39357 100644
--- a/core/themes/seven/page.tpl.php
+++ b/core/themes/seven/page.tpl.php
@@ -12,7 +12,7 @@
 
   <div id="page">
     <?php if ($secondary_local_tasks): ?>
-      <div class="tabs-secondary clearfix"><ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul></div>
+      <div class="tabs-secondary clearfix"><?php print render($secondary_local_tasks); ?></div>
     <?php endif; ?>
 
     <div id="content" class="clearfix">
diff --git a/core/themes/seven/style-rtl.css b/core/themes/seven/style-rtl.css
index a41d325..d3ae89e 100644
--- a/core/themes/seven/style-rtl.css
+++ b/core/themes/seven/style-rtl.css
@@ -208,8 +208,9 @@ ol.task-list li.active {
 .overlay #branding div.breadcrumb {
   float: right;
 }
-.overlay ul.secondary {
-  margin: -1.4em 0 0.3em 0;
+.overlay div.tabs-secondary {
+  float: left;
+  margin: -2.9em 0 0.3em -5px;
 }
 
 /* Shortcut theming */
diff --git a/core/themes/seven/style.css b/core/themes/seven/style.css
index e5869d3..a6d2a55 100644
--- a/core/themes/seven/style.css
+++ b/core/themes/seven/style.css
@@ -892,13 +892,25 @@ ol.task-list li.done {
 #overlay-tabs li {
   margin: 0 -2px;
 }
+.overlay div.tabs-secondary {
+  float: right; /* LTR */
+  margin: -2.9em -5px 0.3em 0; /* LTR */
+  overflow: visible;
+  width: 65%;
+}
 .overlay ul.secondary {
   background: transparent none;
-  margin: -1.4em 0 0.3em 0; /* LTR */
+  float: right;
   overflow: visible;
+  padding: 0;
+}
+.overlay ul.secondary li {
+  padding-bottom: 2px;
+  margin-bottom: 0;
 }
 .overlay #content {
   padding: 0;
+  clear: both;
 }
 h1#overlay-title {
   font-weight: normal;
