Hi there,
Here’s the site:
I want to add an image of a tree to the bottom left of the page. The problem is, depending on where I place it inside the header, it does one of 3 things:
a) it doesn’t show up
b) it shows up, but when I scroll down on the page, the tree moves up (whereas I want it to stay fixed in the bottom left EXACTLY like the image in the top left)
c) it shows up, and when I make my chrome window smaller, the image stays the same size and therefor blocks a bunch of the content.
What CSS do I need to add so that this image works exactly like the image in the top left?
Currently, I only have this:
#treeimg { position:absolute; left:10px; bottom:55px; z-index: 5 }
Do I need to create separate div for this?
Here is a bunch of header code, sorry. Just not sure at all where to put it.
<body class="clearfix">
<div id="main-leftarea">
<div class="topbg"></div>
<a href="<?php bloginfo('url'); ?>">
<img id="logo" src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="logo" />
</a>
<img id="treeimg" src="http://www.pokerdrawings.com/wp-content/uploads/2011/02/tree.png">
<div id="glow"></div>
<?php $home = is_home(); ?>
<div id="menu">
<ul id="main-menu">
<li><a href="<?php bloginfo('url'); ?>/#home" class="active<?php if (!$home) echo(' external'); ?>"><?php _e('Home','Glider') ?></a></li>
<?php
$pagesContent = array();
$i=0;
$home_pages_num = count(get_option('glider_home_pages'));
$arr = array( 'post_type' => 'page',
'orderby' => 'menu_order',
'order' => 'ASC',
'post__in' => get_option('glider_home_pages'),
'showposts' => $home_pages_num );
query_posts($arr); ?>
<?php if (have_posts()) : while(have_posts()) : the_post(); ?>
<?php $hash = get_the_title();
$hash = strtolower(preg_replace('/ /','_', $hash)); ?>
<?php if ($i!=0) { ?>
<li><a href="<?php bloginfo('url'); ?>/#<?php echo $hash; ?>"<?php if (!$home) echo(' class="external"'); ?>><?php the_title(); ?></a></li>
<?php } ?>
<?php $pagesContent[$i]['hash'] = $hash;
global $more; $more=1;
$pagesContent[$i]['content'] = get_the_content();
$pagesContent[$i]['content'] = apply_filters('the_content', $pagesContent[$i]['content']);;
$pagesContent[$i]['title'] = get_the_title();
$thumb = '';
$width = 173;
$height = 173;
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
$pagesContent[$i]['thumbnail'] = $thumbnail["thumb"];
$pagesContent[$i]['use_timthumb'] = $thumbnail["use_timthumb"];
$pagesContent[$i]['portfolio_categories'] = get_post_meta($post->ID,'et_portfolio_categories',true) ? get_post_meta($post->ID,'et_portfolio_categories',true) : '';
$pagesContent[$i]['portfolio'] = ( (bool) get_post_meta($post->ID,'et_portfolio_page',true) ) ? true : false;
$i++; ?>
<?php endwhile; endif; wp_reset_query(); ?>
<li><a href="<?php echo get_category_link(get_cat_ID(get_option('glider_blog_cat'))); ?>" class="external"><?php _e('Blog','Glider'); ?></a></li>
</ul>
</div> <!-- #main-menu -->
<span id="active-arrow"></span>
<div id="right-border"></div>
</div>
</div>
<!-- #main-leftarea -->
Any help greatly appreciated. Let me know if I need to clarify.
Thanks