• Resolved auxano

    (@auxano)


    https://tinyurl.com/nomq7b

    In IE 6 & 7, the h2.widgettitles have an extra 15px padding on the left and I cannot figure out where it’s coming from. And while you’re looking at it, you’ll see the button for online support is also padded in IE.

    This is so weird because I’ve used the same theme files to create other custom themes and have never had this trouble. So, it’s something I’ve obviously done, but I can’t figure out what it is. I would really appreciate an extra set of eyes looking at it. Hopefully my mistake will jump out at someone else.

    Just in case, here’s what I have in the functions.php file:

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'Home Page Sidebar',
    ));
    register_sidebar(array('name'=>'Page Sidebar',
    ));
    register_sidebar(array('name'=>'Blog Sidebar',
    ));
    ?>

    And here’s how the sidebars are called in the template:

    <div id="sidebar">
    <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Home Page Sidebar') )  ?>
    </div> <!-- end #sidebar -->

    Obviously, Home Page Sidebar in the above code gets changed for each template accordingly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • IE6 & 7 often have different margins/padding with the same CSS compared to other browsers. See https://quirm.net/2009/06/29/wordpress-conditional-comment-css/ for a workaround.

    Thread Starter auxano

    (@auxano)

    Yeah, I know I can do a CC for IE, but I was hoping to find the problem and fix it instead. I can do a negative margin for IE, but it seems silly to do that when all my other themes are fine. I’ll keep looking… ??

    (But I may just do the CC just to save my sanity if I can’t find it! lol)

    A CC is the correct fix. As I said, the box model is badly borked in IE6 and only marginally better in IE7. So, short of re-building the browser, there isn’t a better option.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extra 15px padding on h2.widgettitle in IE ???’ is closed to new replies.