Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Large spaces in <ul> list when viewed in IEv6

    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.



    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:

    Code:
    <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:

    Code:
    /*************************************
     +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

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello TunaFish,
    I'm afraid no IE6 here today... but, if you make your CSS look like this does it help?
    Code:
    /*************************************
     +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;
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •