Center Sidebar?
-
Whenever you visit my homepage: http://www.realcontactfighter.com/wordpress the side bar is centered. However, when you go to one of the pages: http://www.realcontactfighter.com/wordpress/?page_id=126 the sidebar is left justified.
Here is the code:
`
<head>
<style type=”text/css”>
.style3 {
text-decoration: none;
}
.style2 {
color: #FF0000;
}
.style4 {
font-family: “Arial Black”;
color: #C0C0C0;
}
.style5 {
border-width: 0px;
}
.style6 {
font-family: Corbel;
}
.style8 {
color: #FFFFFF;
}
.style9 {
text-align: right;
}.style10 {
text-align: center;
}</style>
</head>
<div id=”sidebar”>
<p><span class=”style2″>
HOME</span></p>
<p><span class=”style2″>
CONTACT</span></p>
<p><span class=”style2″>
MEMBERS FORUM</span></p>
<p><span class=”style2″>
CLOTHING</span></p>
<p><span class=”style2″>
SEMINARS</span>
<p><span class=”style2″>
PROGRAMS</span></p>
<p><span class=”style2″>
SCHEDULE</span>
<p><span class=”style2″>
TESTIMONIALS</span>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(1) ) : ?>
</p>
<p>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
<!– Author information is disabled per default. Uncomment and fill in your details if you want to use it.
- <h2><?php _e(‘Author’); ?></h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
–>
</p>
<?php /* If this is a category archive */ if (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(”); ?> category.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the
“><?php echo bloginfo(‘name’); ?> weblog archives
for the day <?php the_time(‘l, F jS, Y’); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the
“><?php echo bloginfo(‘name’); ?> weblog archives
for <?php the_time(‘F, Y’); ?>.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the
“><?php echo bloginfo(‘name’); ?> weblog archives
for the year <?php the_time(‘Y’); ?>.</p>
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the
“><?php echo bloginfo(‘name’); ?> weblog archives
for ‘<?php echo wp_specialchars($s); ?>’. If you are unable to find anything in these search results, you can try one of these links.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<p>You are currently browsing the
“><?php echo bloginfo(‘name’); ?> weblog archives.</p>
<?php } ?>
<?php wp_list_pages(‘title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>
<h2><?php _e(‘Categories’); ?></h2>
<?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>
<?php if (function_exists(‘wp_theme_switcher’)) { ?>
<h2><?php _e(‘Themes’); ?></h2>
<?php wp_theme_switcher(); ?>
<?php } ?>
<!– Disabled calendar by default <?php get_calendar(); ?> –>
<h2><?php _e(‘Archives’); ?></h2>
<?php wp_get_archives(‘type=monthly’); ?>
<h2><?php _e(‘Meta’); ?></h2>
- <?php wp_loginout(); ?>
-
“><?php _e(‘Valid <abbr title=”eXtensible HyperText Markup Language”>XHTML</abbr>’); ?>
-
<abbr title=”XHTML Friends Network”>XFN</abbr>
<?php wp_register(); ?>
<?php wp_meta(); ?>
<?php } ?>
<?php endif; ?>
</div>
<div class=”style9″>
<span class=”style6″><span class=”style8″>THIS SITE IS FREE OF
CHARGE
IF YOU LIKE IT PLEASE
FEEL FREE TO: </span></span></div>
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post”>
<div class=”style9″>
<input type=”hidden” name=”bn” value=”PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest”>
<input type=”hidden” name=”currency_code” value=”USD”>
<input type=”hidden” name=”item_name” value=”Real Contact Fighter”>
<input type=”hidden” name=”lc” value=”US”>
<input type=”hidden” name=”business” value=”info@durattan.com”>
<input type=”hidden” name=”cmd” value=”_donations”>
<div class=”style9″>
<input type=”image” src=”https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif” border=”0″ name=”submit” alt=””>
<img alt=”” border=”0″ src=”https://www.paypal.com/en_US/i/scr/pixel.gif” width=”1″ height=”1″>
<span class=”style4″>
——————————————————- </span></div></div>
</form>
<p class=”style9″>
<img alt=”” src=”http://realcontactfighter.ryangruhn.com/seminars/sherk/images/sidebanner.gif” width=”192″ height=”768″ class=”style5″> </p>
<div class=”style10″>
<span class=”style4″>SHERK HIGHLIGHT </span>
<object width=”192″ height=”166″>
<div class=”style9″>
<param name=”movie” value=”http://www.youtube.com/v/eiHkhcwvgNA&hl=en&fs=1″></param><param name=”allowFullScreen” value=”true”></param><embed src=”http://www.youtube.com/v/eiHkhcwvgNA&hl=en&fs=1″ type=”application/x-shockwave-flash” allowfullscreen=”true” width=”192″ height=”166″></embed></div>
</object><span class=”style4″>
——————————————————- </span><script type=”text/javascript”><!–
google_ad_client = “pub-2927414965660869”;
/* 120×600, created 1/9/08 */
google_ad_slot = “2808114960”;
google_ad_width = 120;
google_ad_height = 600;
//–>
</script><script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
<span class=”style4″>——————————————————- </span>
</div>
- <h2><?php _e(‘Author’); ?></h2>
The topic ‘Center Sidebar?’ is closed to new replies.