• Hi!

    Here is my site https://mojs.mine.nu/mm/wordpress .As you can see, my footer is under my sidebar. Maybe someone knows why?

    My index.php:

    <?php
    get_header();
    ?>
    <div id="content">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div class="entry <?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
        <h3 class="entrytitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark">
          <?php the_title(); ?>
          </a> </h3>
    <div class="entrymeta">
            	<?php the_time('F d, Y');
    			echo " | Kategori: ";the_category(',');?>
    		</div>
        <div class="entrybody">
          <?php the_content(__('Read more'));?>
    
    <?php			comments_popup_link( 'No comments ','1 comment ','% comments ',	'comments-link ','Comments are off for this post ');
    			edit_post_link(__('<strong>Edit</strong>'));?>
    
        </div>
    
        <!--
    	<?php trackback_rdf(); ?>
    	-->
      </div>
    
      <?php comments_template(); // Get wp-comments.php template ?>
      <?php endwhile; else: ?>
    
        <?php _e('Sorry, no posts matched your criteria.'); ?>
    
      <?php endif; ?>
    
        <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
    
    </div>
    <?php get_sidebar(); ?>
    <!-- The main column ends  -->
    <?php get_footer(); ?>

    My page.php:

    <?php
    get_header();
    ?>
    
    <div id="content">
    
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div class="entry <?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
        <h3 class="entrytitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark">
          <?php the_title(); ?>
          </a> </h3>
        <div class="entrybody">
          <?php the_content(__('Read more'));?>
    
    <?php			comments_popup_link( 'No comments ','1 comment ','% comments ',	'comments-link ','Comments are off for this post ');
    			edit_post_link(__('<strong>Edit</strong>'));?>
    
        </div>
        <!--
    	<?php trackback_rdf(); ?>
    	-->
      </div>
      <?php comments_template(); // Get wp-comments.php template ?>
      <?php endwhile; else: ?>
    
        <?php _e('Ap ap ap, h?r var det inget.'); ?>
    
      <?php endif; ?>
    
        <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
    
    </div>
    <?php get_sidebar(); ?>
    <!-- The main column ends  -->
    <?php get_footer(); ?>

    My style.css:

    /*
    	Theme Name: fSpring
    	Theme URI: https://www.fahlstad.se
    	Description: Spring flavour.
    	Version: 1.0
    	Author: Fredrik Fahlstad
    	Author URI: https://www.fahlstad.s
    */
    body {
            margin: 0px;
    	padding: 0px;
    	background: #ececec url(images/bg1.png) repeat-y center;
    	color: #666;
    	font: 11px/15px Verdana, Arial, Helvetica, sans-serif;
            body {background-color: #CCCC99;}
    }
    #wrap {
    	width: 700px;
    	overflow: hidden;
    	position:relative;
    	margin: 0px auto;
    }
    
    #content {
    	width: 350px;
    	float: left;
    	display:inline;
    	text-align: justify;
    	padding: 10px;
    	margin: 8px;
            margin-left:20px;
    }
    #content p {color: black}
    #nav {
    	height: 49px;
    	width: 700px;
    	margin-right: auto;
    	margin-left: auto;
    }
    
    #sidebar {
    	width: 238px;
    	float: right;
    	line-height: 1.5em;
    	display:inline;
    	margin: 8px 8px 8px 0px;
    	padding: 10px;
    	font-size:10px;
    }
    #pages h1{
    	margin:0px;
    	padding:0px;
    }
    #pages h1 a{
    	text-transform:uppercase;
    	text-decoration:none;
    	color:#999;
    	font: 18px Arial, Helvetica, sans-serif;
    	margin:0px;
    	padding:13px 0px 0px 10px;
    	letter-spacing: -1px;
    	float: left;
    }
    #pages h1 a:hover{
    	text-decoration:underline;
    }
    
    h3, h4 {
    	padding-top: 5px;
    	padding-bottom: 15px;
    }
    #logo {
    	background: url(images/logo1.png) no-repeat;
    	height: 175px;
    	width: 700px;
    	margin-right: auto;
    	margin-left: auto;
            margin-bottom:70px
    	}
    #navigation {
    	height: 10px;
    	width: 700px;
    	margin-right: true;
    	margin-left: false;
    }
    #tagline {
    	height: 20px;
    	text-align: right;
    	margin-top: -30px;
    	margin-right: 25px;
    	font-size: 10px;
    	font-weight: bold;
    	text-transform: uppercase;
    	color: #FFFFFF;
    }
    div#pages {
    	height: 40px;
    	margin: 0px auto 5px;
    	width:700px;
    
    }
    
    div#pages ul {
    	padding: 10px 0px 0px;
    	white-space: nowrap;
    	list-style-type: none;
    	margin: 0px;
    }
    div#pages ul li {
    	float:right;
    }
    #pages ul li a:before{
    	content:" .: ";
    	color:#ff7800;ff7800
    }
    div#pages ul li.current_page_item a  {
    	text-decoration: underline;
    }
    div#pages ul li a {
    	display: block;
    	text-decoration: none;
    	margin:1px 0px;
    	text-align:right;
    	font-size:10px;
    	padding:4px;
    	font-weight: bold;
    	text-transform: uppercase;
    	color: #999999;999999
    }
    div#pages ul li a:hover {
    	color: #FF7800;
    }
    
    #footer {
    	clear: both;
    	text-align: center;
    	height: 40px;
    	border-top-width: 1px;
    	border-top-style: solid;
    	border-top-color: #A4A60E;CCCCCC
    	width: 774px;
    	padding: 0px;
    	margin-right: auto;
    	margin-left: auto;
    }
    #footer p{
    	padding:10px;
    	margin:0px;
    }
    
    .entry{
    	padding-top: 0px;
    	padding-bottom: 30px;
    	padding-left: 0px;
    	/*font-size: 0.80em;*/
    	line-height: 1.5em;
    }
    .firstpost {
    	margin-bottom:15px
    }
    h3.entrytitle, h3 {
    	padding-top: 0px;
    	padding-right: 0px;
    	padding-bottom: 0px;
    	margin-top: 0;
    	margin-right: 0;
    	margin-bottom: 5px;
    
    }
    h3.entrytitle a, h3.entrytitle a:visited, h3 a{
    	color: #ff7800;
    	text-decoration:none;
    	border-style: none;
    	font-size: 12px;
    	font-weight: bolder;
    	text-transform: none;
    }
    h3.entrytitle a:hover, h3 a:hover{
    text-decoration:underline;}
    .entrymeta{
    	height: 16px;
    	margin-top: 0;
    	font-size: 10px;
    	color: #999;
    	border-top:solid 1px #ccc;
    	padding-top:4px;
    	margin-bottom: 8px;
    }
    .entrymeta a img{
    	border:none;
    }
    .entrybody img {
    	padding: 4px;
    	border: 1px solid #DFDFDF;
    }
    .entrybody ul {
    	margin-left: 20px;
    	padding-left:0px;
    	list-style-type: none;
    }
    .entrybody ol{
    	margin-left:20px;
    	padding-left:0px;
    }
    .entrybody ul li {
    	list-style:square;
    }
    .commentlink img {
    	border-top-style: none;
    	border-right-style: none;
    	border-bottom-style: none;
    	border-left-style: none;
    }
    
    h4, h3, h2, #commentblock h2 {
    	margin: 0;
    	padding: 0px;
    	font-size: 11px;
    	font-style: normal;
    	font-weight: bold;
    	font-variant: normal;
    	color:#999;
    }
    h2{
    	margin-bottom: 10px;
    	font-size: 14px;
    }
    a, a:visited{
    	color: #ff7800;
    	text-decoration:none;
    }
    a:hover{
    	text-decoration:underline;
    }
    .entrybody p{
    margin:8px 0;
    padding:0;
    }
    .entrybody ul {
    	margin-left: 30px;
    	padding-left:0px;
    	list-style-type: none;
    }
    .entrybody ol{
    	margin-left:30px;
    	padding-left:0px;
    }
    .entrybody ul li {
    	list-style:square;
    }
    #sidebar h2 {
    	color: #999;
    	margin-top: 5px;
    	margin-right: 0px;
    	margin-bottom: 8px;
    	padding-top: 0px;
    	padding-right: 0px;
    	padding-bottom: 4px;
    	padding-left: 0px;
    	border-bottom: 1px solid #ccc;
    	font-size: 10px;
    	font-weight: bold;
    	text-transform: uppercase;
    }
    #sidebar ul {
    	list-style: none;
    	margin: 0 0 20px 0;
    	padding: 0;
    }
    
    #sidebar ul li {
    	display: inline;
    	margin:0;
    	padding:0
    }
    #sidebar li{
    	list-style: none;
    
    }
    
    #sidebar ul li a {
    	border-bottom: 1px solid #ccc;
    	color: #ff7800;
    	display: block;
    	text-decoration: none !important;
    	margin-left: 0px;
    	padding-top: 4px;
    	padding-right: 0px;
    	padding-bottom: 4px;
    	padding-left: 25px;
    	background-image: url(images/navbulle.gif);
    	background-repeat: no-repeat;
    	background-position: 10px 50%;
    }
    
    #sidebar ul li a:hover{
    	border-bottom-color: #fff;
    	color: #666 !important;
    	background-color: #ccc;
    }
    
    #searchdiv {
    	margin-top: 8px;
    	margin-bottom: 15px;
            background-color: #FCFCFC;
    }
    .comments-link {
    	background-image:url(images/comments.gif);
    	background-repeat: no-repeat;
    	background-position: left center;
    	padding-left:16px;
    }
    /************************************************
    *	Comments													*
    ************************************************/
    #commentblock h2{
    	padding:2px;
    	margin-bottom:10px;
    	margin-top:30px;
    }
    #commentblock {
    	float:left;
    	padding-top: 0px;
    	padding-bottom: 20px;
    
    	text-align: left;	/*font-size: 0.8em;*/
    }
    
    ol#commentlist {
    	margin-top:0px;
    	padding: 5px;
    	margin-left: 0px;
    	list-style-type: none;
    }
    .commentdate {
    	font-size:0.8em;
    	padding-left:5px;
    }
    #commentlist li  p{
    	margin-bottom: 8px;
    	line-height: 20px;
    	padding:0;
    }
    
    .commentname {
    	margin: 0;
    	padding: 5px;
    }
    
    .commentinfo{
    clear:both;
    }
    
    .commenttext {
    	clear: both;
    	margin-top: 0px;
    	margin-bottom: 10px;
    	padding: 10px;
    	width:450px;
    	background: #ececec url(images/comm.png) no-repeat top;
    }
    
    .commenttext-admin {
    	clear: both;
    	margin-top: 0px;
    	margin-bottom: 10px;
    	padding: 10px;
    	width:450px;
    	background: #d7d7d7 url(images/comm-admin.png) no-repeat top;
    }
    
    #commentsformheader{
    	padding-left:0px;
    }
    
    #commentsform{
    	margin-top:0;
    	text-align:center;
    	padding-top: 0px;
    	padding-right: 0px;
    	padding-bottom: 0px;
    	padding-left: 0px;
    }
    
    #commentsform form{
    	text-align:left;
    	margin:0px;
    }
    
    #commentsform p{
    	margin:5px;
    }
    
    #commentsform form textarea{
    	width:99%;
    }
    p.comments_link  img{
    	margin: 0px;
    	padding: 0px;
    	border-top-style: none;
    	border-right-style: none;
    	border-bottom-style: none;
    	border-left-style: none;
    }
    blockquote{
    	font-style: italic;
    	color: #999999;
    }
    .adwrap,
    .adwrapwide,
    .adwrap-lu,
    .adwrapbutton {
    	margin:0 0 1em;
    	padding:4px 0;
    	background:#fff;
    	border-top-width: 1px;
    	border-right-width: 0;
    	border-bottom-width: 1px;
    	border-left-width: 0;
    	border-top-style: solid;
    	border-right-style: solid;
    	border-bottom-style: solid;
    	border-left-style: solid;
    	border-top-color: #d5d7d0;
    	border-right-color: #d5d7d0;
    	border-bottom-color: #d5d7d0;
    	border-left-color: #d5d7d0;
    }
    
    .adwrap object {
    	width:336px;
    	height:280px;
    }
    
    .adwrapwide iframe,
    .adwrapwide object {
    	width:468px;
    	height:65px;
    }
    
    .adwrap-lu {
    	margin:0 0 1em 1em;
    	width:180px;
    	float:right;
    }
    
    .adwrap-lu object {
    	width:180px;
    	height:90px;
    }
    
    .adwrapbutton iframe,
    .adwrapbutton object {
    	width:180px;
    	height:150px;
    }
    
    table{
    	margin:10px;
    }
    td, th{
    	padding:3px;
    	font-weight:normal;
    
    }
    
    #meny{margin-left: 0; padding-left: 0; font-size: 200%;}
    #meny li{display: inline; list-style-type: none;}
    #meny a{padding: 0.25em 1em; text-decoration: none;}
    
    #meny a:link{color: #1A7C38; background: #A4A60E;}
    #meny a:visited{color: #ffffff; background: #20A3E6;}
    #meny a:hover{background: #996666;}
    #meny a#current{background: #FF7800; color: #FF7800;}
    }
    #navigation2 {
      height:2.7em;
      line-height:2.7em;
    }
    
    /* subcontent
    --------------------------------------------------*/
    #subcontent {background:url(images/spring_flavour/subcontent_bg.gif) top left no-repeat;}
    
    /* subcontent headings
    --------------------------------------------------*/
    #subcontent h2 {
      color:white;
      background:#3B78C4 url(images/spring_flavour/corner_top_left.gif) top left no-repeat;
    }
    
    #subcontent h2 em {background:url(images/spring_flavour/corner_bottom_right.gif) bottom right no-repeat;}
    
    /* subcontent list
    --------------------------------------------------*/
    #subcontent ul li {border-bottom-color:#F0F0F0;}
    
    #subcontent li a:hover {background-color:#FFFBF0;}
    
    #subcontent ul.pages li {list-style-image:url(images/spring_flavour/post_yellow.gif);}
    
    #subcontent ul.categories li,
    #subcontent ul.months li {list-style-image:url(images/spring_flavour/categories_yellow.gif);}
    
    #subcontent ul.links li {list-style-image:url(images/spring_flavour/links_yellow.gif);}
    
    #subcontent ul.feeds li {list-style-image:url(images/spring_flavour/feeds_yellow.gif);}
    
    #subcontent ul.posts li {list-style-image:url(images/spring_flavour/post_yellow.gif);}
    
    #subcontent ul.categories li li {list-style-image:url(images/spring_flavour/sub_categories_yellow.gif);}

    Thanks! /Adam -Sweden

Viewing 4 replies - 1 through 4 (of 4 total)
  • You should start by trying to get your code to validate: https://validator.w3.org

    It could be something as simple as not closing a div at the right place, or at all.

    – john

    I don’t even get a footer in IE6.

    edit: Yup, there’s a div missing. Link

    Thread Starter mojsgojs

    (@mojsgojs)

    Yeah I’ve tried the validator, but couldn’t get it to work. Anyway, drmike, what error do you mean, I don’t see any div missing? I see a bunch of errors though ;P Thanks for answering btw! I’m very thankful =)

    I have the same problem now. Not sure how I did it. I was adding a tile to my sidebar. Now my footer is at the bottom of my sidebar arrrgh!
    My Oops

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Footer in my sidebar?’ is closed to new replies.