Forums

Help With Position Of SideBar (12 posts)

  1. assisted
    Member
    Posted 2 weeks ago #

    Hello!
    I have been trying to solve this for 3 hours and no luck :(

    My sidebar is stuck and I can't seem to position it, can someone solve this for me pleaseee!?

    URL: http://fatal-femme.net/test/

    thanks!!
    Leanne

  2. alchymyth
    Member
    Posted 2 weeks ago #

    you have lots of validation errors. like wrongly closed <div>s etc.

    also, in the style.css - all the styles for the class .sidebar need to have the dot infront of the word sidebar: (for instance)
    .sidebar { float: right; width: 290px; margin: 0; padding: 0; }

  3. assisted
    Member
    Posted 2 weeks ago #

    thanks will give this a go :)

  4. assisted
    Member
    Posted 2 weeks ago #

    nothing is working I can't seem to solve it, don't know what to do now :(

  5. alchymyth
    Member
    Posted 2 weeks ago #

    you can copy the code of your php files , using a pastebin and then post the link to it here for the forum to have a look at it.
    you probably need to post header.php, index.php, and sidebar.php.

    and sometimes it helps to print everything out and work on paper ;-) to check the proper closing of all divs.

  6. assisted
    Member
    Posted 2 weeks ago #

    ok :) I'll do that, thanks!

  7. assisted
    Member
    Posted 2 weeks ago #

    header.php

    1.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2.
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    3.

    4.
    <head profile="http://gmpg.org/xfn/11">
    5.
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    6.

    7.
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
    8.

    9.
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    10.

    11.
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    12.
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    13.
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    14.

    15.
    <?php wp_head(); ?>
    16.
    </head><body>
    17.
    <div id="outer"><div id="navcontainer">
    18.
    <td align="right" valign="top"><div style="margin-top:-23px; color:#cbcbcb; line-height:1.4em; margin-right:0px;" align="right">
    19.
    <ul id="localnav">
    20.

  8. <h6>hi<?php } else { ?><?php if ( is_single() ) { ?>hi<?php } else { ?>all<?php } ?><?php } ?>" href="<?php bloginfo(url); ?>" id="localnav_home">Home</h6>
  9. 21.

  10. <h6>hi<?php } else { ?>all<?php } ?>" href="#" id="localnav_about">About</h6>
  11. 22.

  12. <h6>hi<?php } else { ?>all<?php } ?>" href="#" id="localnav_favourites">Favourites</h6>
  13. 23.

  14. <h6>hi<?php } else { ?>all<?php } ?>" href="#" id="localnav_photos">Photos</h6>
  15. 24.
    </h6>
    25.
    </div></td>
    26.

    27.
    </tr></table></div>
    28.
    <table width="100%" border="0"><tr>
    29.
    <img src="<?php bloginfo('template_directory'); ?>/images/bloglogo.jpg" alt="Header" class="full" />

  • jrav001
    Member
    Posted 2 weeks ago #

    Your sidebar isn't in a div. You need
    <div class-'sidebar'> before your sidebar and
    </div> after your sidebar.

  • assisted
    Member
    Posted 2 weeks ago #

    Hi everyone,
    I have pretty much solved it but now I'm having issues with my second dynamic sidebar containing the calender widget. It won't accept my CSS style like sidebar one has. Instead it has a mind of it's own and has positioned itself to the right!
    Any help?

  • assisted
    Member
    Posted 2 weeks ago #

    my CSS is now:

    see post below for it

  • assisted
    Member
    Posted 2 weeks ago #

    see link below for the pastebin of my CSS

  • assisted
    Member
    Posted 2 weeks ago #

  • Reply

    You must log in to post.

    About this Topic

    Tags