Why won’t my sidebar move?
-
This is the code in my style.css:
div#sidebar { float: left; width: 20.5%; margin-top: 10px; margin-left: -20%; text-align: left;
Whenever I change the values of margin-left, absolutely nothing happens. Whenever I change float: left; to center or something the side bars go way down the page. Whenever I change the width: 20.5%; to say 100% the side bars go way down the page.
I’m trying to move it over a smidge to the right. What can I do?
The code in sidebar.php is this just incase it has to do anything with it…
<!--sidebar.php--> </div><!-- content end--></div><!-- wrapper end--> <div id="sidebar"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Right Sidebar') ) : else : ?> <?php if (function_exists('get_search_form')) { get_search_form(); }else { include (TEMPLATEPATH . '/searchform.php');} ?> <?php if (function_exists('wp_theme_switcher')) { ?> <h2><?php _e('Themes'); ?></h2> <?php wp_theme_switcher(); ?> <?php } ?> <?php endif; ?> </div><!--sidebar end--> <div id="navigation"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Left Navigation') ) : else : ?> <?php _e('<img src="https://img190.imageshack.us/img190/7748/nav3edited.png">','mtsjourney'); ?> <p><?php bloginfo('description'); ?></p> <a href="/olderposts">Older Posts</a><br /> <a href="/contact">Contact</a> <?php endif; ?> </div><!--navigation end--> <!--sidebar.php end-->
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Why won’t my sidebar move?’ is closed to new replies.