...

View Full Version : Large spaces in <ul> list when viewed in IEv6



TunaFish
01-15-2008, 08:24 PM
Hey guys, I've run into an irritant with my website at thinkgardner.com. The list of links in my sidebar look great when viewed with Firefox or IEv7. However, when viewed with IEv6, there are huge gaps of space between each link. I've posted a screenshot to show how it looks under IEv6.

http://thinkgardner.com/img/iev6.JPG

I've tried changing different values regarding different settings, but it doesn't seem to have any effect on the large gaps. It seems to me the problem is in either my sidebar layout, or in the CSS controling my html tags. Here is the sidebar code layout:



<h2 class="kat">
<span class="nodisplay">Categories</span></h2>
<ul>
<?php //list_categories(0, '', 'name', 'asc', '', 1, 0, 0, 1, 1, 1, 0,'','','','','');
wp_list_categories( 'hierarchical=1&title_li=' ); ?>
</ul>
<h2 class="laste">
<span class="nodisplay">Last entrys</span></h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=3'); ?>
</ul>
<h2 class="archiv"><span class="nodisplay">Archives</span></h2>
<ul>
<select name="archive-dropdown" class="dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
<option value=""><?php echo attribute_escape(__('Select Month')); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
</ul>
<?php if (function_exists('get_recent_comments')) { ?>
<h2 class="lastc"><span class="nodisplay">Last comments</span></h2>
<ul>
<?php get_recent_comments(); ?>
</ul>
<?php } ?>
<h2 class="rssf"><span class="nodisplay">RSS-Feeds</span></h2>
<span style="font-size: .75em; font-weight:plain;"> &nbsp; Would you like to receive an email when a new video is uploaded?</span>
<?php
$content = apply_filters('the_content', '<p><!--subscribe2--></p>');
echo $content;
?>
<?php endif; ?>
</div>


And this is the CSS controlling the ul tags:


/*************************************
+Sidebar
*************************************/
#sidebar ul{
width:230px;
list-style-type:none;
margin: 0;
padding:0;
padding-top:10px;
padding-bottom:5px;
padding-left:0px;
}
#sidebar ul li{
list-style-type: none;
list-style-image: none;
margin: 0;
padding:0px;
}

#sidebar li{
display: block;
font-size: 0.9em;
text-align: left;
text-decoration: none;
}
#sidebar li a, #sidebar li a:visited {
display: block;
text-decoration: none;
padding: 3px 5px 3px 10px;

}
#sidebar li a:hover, #sidebar li a:active {
background:#4E6D79;
color:#fff;
}

#sidebar ul .children{
padding:0 0 0 10px;
margin:0px;
}

ul#feeds {
padding-left:10px;
list-style-type:none;
margin:0;
}

#feeds a {
display:block;
margin-left:30px;
color:#263B43;
}

#feeds a:hover {
color:#000;
}


Thanks for looking this over. I'm rather new to the entire coding process, but if you notice anything out of the ordinary, it may start me down the right path.

Daniel

Excavator
01-15-2008, 08:37 PM
Hello TunaFish,
I'm afraid no IE6 here today... but, if you make your CSS look like this does it help?
/*************************************
+Sidebar
*************************************/
* {
margin: 0;
padding:0;
}
#sidebar ul{
width:230px;
list-style-type:none;
padding: 10px 0 5px 0;
}
#sidebar li{
display: block;
font-size: 0.9em;
text-align: left;
text-decoration: none;
}
#sidebar li a, #sidebar li a:visited {
display: block;
text-decoration: none;
padding: 3px 5px 3px 10px;
}
#sidebar li a:hover, #sidebar li a:active {
background:#4E6D79;
color:#fff;
}

TunaFish
01-15-2008, 08:59 PM
Hey Excavator, thanks for the reply. I tried the variation, and no, it doesn't show any difference in IEv6 (or FF for that matter). I've also tried removing the gaps of space between the closing and opening <ul> tags (read somewhere that IEv6 has a bug that reads the gaps wrong) but that didn't make any difference either.

Also, I forgot to mention this in the original post, but there is a "content" CSS that defines sidebar, and it is:



#sidebar{
font-size:1.1em;
font-weight:bold;
float:right;
margin-top:1em;
width:240px;
padding:4px;
margin-right:15px;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum