Sidebar Positioning Issues
-
I am having the same issue on a theme I am working on. This is the code for the page:
<body> <?php get_header(); ?> <div id="page-wrap"> <div id="contentPage"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3><a href="<?php echo get_option('home'); ?>/">Home</a> » <b><?php the_title(); ?></b></h3> <hr /> <div class="entry"> <?php the_content(); ?> <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?> </div> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> <?php endwhile; endif; ?> </div> <div id="rightnav" class="sidebar"> <?php get_sidebar(); ?> </div> </div> </body> <?php get_footer(); ?>
And here are my css rules:
#page-wrap { width: 80%; margin-left: auto; margin-right: auto; margin-bottom: 30px; } #contentPage { margin: 0 45px 30px 0; padding:0 45px 0 0; width:65%; } #rightnav { float: right; width: 25%; margin: 0; padding: 1em; } .sidebar { float:right; margin: 0; padding: 0; vertical-align: top; clear: right; }
Here is what the site currently looks like. Am I missing something?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Sidebar Positioning Issues’ is closed to new replies.