When has no tabs on the page then an empty <div> goes to output. Like this: <div class="tabs clearfix"></div>
Because the $tabs variable in the region--content.tpl.php file is an array. Like this:

    [#theme] => menu_local_tasks
    [#primary] =>
    [#secondary] =>

This check is not enough:
if ($tabs) :

This is better:
if ($tabs && !empty($tabs['#primary']) :
#3 tab_condition_1332732-4.patch845 bytesHydra


Agreed. I just spent a good bit of time debugging some extra space in IE7 that ended up being because of this empty $tabs div.

Marked #1385770: Tabs Wrapper printed even if tabs is empty as duplicate of this issue.

Status:Active» Needs review
new845 bytes

Had this issue also some times...

Assigned:Unassigned» himerus

ah IE7 how we love you so... :)

Assigned:himerus» Unassigned
Status:Needs review» Fixed

Comitted to 7.x-3.x

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.