SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WordPress Help - What did I do to the footer?

    I don't know exactly what I did, but the footer here isn't aligning to the bottom as it should.

    This is the code for the footer.php:

    Code PHP:
    </div>
    <div class="footer">
    Site copyright 2007 Anime Streamer. All images are copyright to their respectful owners. All rights reserved.
    </div>
    <?php do_action('wp_footer'); ?>
    </body>
    </html>

    I'm not sure if it has anything to do with the header code, but here's the header.php:

    Code PHP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
     
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
     
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
     
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
     
    	<?php wp_get_archives('type=monthly&format=link'); ?>
    	<?php //comments_popup_script(); // off by default ?>
    	<?php wp_head(); ?>
    <!--[if lte IE 6]>
     
    <style type="text/css">
    .post h2{
    	behavior:url("pngbehavior.htc");
    	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php bloginfo('template_directory'); ?>/images/title.png');
    	background:url(images/blank.gif);
    	}
    .postmetadata {
    	behavior:url("pngbehavior.htc");
    	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php bloginfo('template_directory'); ?>/images/postmet.png');
    	background:url(images/blank.gif);
    	}
    .cover {
    	behavior:url("pngbehavior.htc");
    	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php bloginfo('template_directory'); ?>/images/content.png');
    	background:url(images/blank.gif);
    	}	
    </style>
     
    <![endif]-->
     
    </head>
    <body>
    <div class="wrapper">
    <div class="nav">
    	<div class="menu">
    	<ul>
    	<li><a href="<?php bloginfo('home'); ?>/">Home</a></li>
    	   	 <?php wp_list_pages('title_li=&depth=1'); ?>
    	</ul>
    </div>
    </div>
    <div class="top">
    <div class="f_search">
    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <p><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" class="search" onblur="if(this.value=='') this.value='Search...';" onfocus="if(this.value=='Search...') this.value='';" name="s" id="search_query" />
    </p>
    </form>
    </div>
    </div>
    <div id="container">

    Does anyone know what I did wrong?

  2. #2
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You probably just need to put a
    Code CSS:
    clear:both
    in the Stylesheet for the #footer.
    Winners Respond. Losers React.
    Singapore Web Designer

  3. #3
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, sorry, that didn't seem to work.

  4. #4
    _ silver trophy ses5909's Avatar
    Join Date
    Jul 2003
    Location
    NoVa
    Posts
    5,466
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Going to move this to the CSS forum as it seems you may get more responses there.
    Sara

  5. #5
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The container div is not clearing the floated content :
    Code:
    #container{
    	width:1000px;
    	margin:0 auto;
    	overflow: hidden;
    		}


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •