Permalink
Browse files

removed the empty span from header.html and added the clearfix class …

…to the navbar and to the header divs. this repairs Bug #5051
  • Loading branch information...
urs_hunkler
urs_hunkler committed Apr 8, 2006
1 parent 3dec563 commit 53fa54d9e0a22618b55a3f8b958b290ec10de1e4
Showing with 7 additions and 5 deletions.
  1. +3 −5 theme/standard/header.html
  2. +4 −0 theme/standard/styles_layout.css
@@ -20,24 +20,22 @@
<?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
if ($home) { // This is what gets printed on the home page only
?>
- <div id="header-home">
+ <div id="header-home" class="clearfix">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading
?>
- <div id="header">
+ <div id="header" class="clearfix">
<h1 class="headermain"><?php echo $heading ?></h1>
<div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } ?>
- <div class="clearer"></div>
<?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
if ($navigation) { // This is the navigation bar with breadcrumbs ?>
- <div class="navbar">
+ <div class="navbar clearfix">
<div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div>
- <span class="clearer"></span>
</div>
<?php } else if ($heading) { // If no navigation, but a heading, then print a line
?>
@@ -72,8 +72,12 @@ h6.main {
clear: both;
visibility: hidden;
}
+
+.clearfix {display: inline-table;}
+
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
+.clearfix {display: block;}
/* End hide from IE-mac */
.mdl-align {

0 comments on commit 53fa54d

Please sign in to comment.