Forums

Sidebar lists shifting to right in Firefox, in Travelogue (4 posts)

  1. Tfleming
    Member
    Posted 2 years ago #

    My blog at http://www.tonyfleming.org, using the Travelogue theme, shows up fine in IE7, but the sidebar lists (blogroll, etc.) shifts to the right in Firefox. Changed a few small items in the style.css, but nothing brings it back over to where it should be.

    Any suggestions?

  2. chradil
    Member
    Posted 2 years ago #

    looks like that's just differences in the way ff and ie handle padding, margins and nesting/cascade of css. if you're using %'s for sizes, 'auto', or float, they'd be the most likely culprits.

  3. Tfleming
    Member
    Posted 2 years ago #

    Well, here's the code to create the sidebar:

    <div class="sidebox">

    <div class="boxhead"><h3><?php _e('Blog Roll'); ?></h3>
    </div>

    <div class="boxbody">

      <?php get_links('-1', '

    • ', '
    • ', ' ', 0, 'category', 0); ?>

    </div>

    </div>

    (seems to be an random in there, but removing it made no difference.)

    and here is the relevant CSS code from style.css

    .sidebox {
    margin: 0px; /* center for now */
    width: 17.5em; /* ems so it will grow */
    background: url('images/sbbody-r.gif') no-repeat bottom right;
    font-size: 100%;
    }

    .boxhead {
    background: url('images/sbhead-r.gif') no-repeat top right;
    margin: 0;
    padding: 0;
    text-align: left;
    }

    .boxbody {
    background: url('images/sbbody-l.gif') no-repeat bottom left;
    margin: 0;
    padding: 5px;
    font-size: 1.0em;
    font-weight: bold;
    }

    Any help would be appreciated!

  4. Tfleming
    Member
    Posted 2 years ago #

    well, in the code above, a list-item command in the php actually shows up as a list bullet. In the command, it should be a negative 1, 'li', '/li', '[space]', 'zero', 'category', 'zero'

    (the li's are in their bracket, and the zeros are the number)

    hope this is understandable

Topic Closed

This topic has been closed to new replies.

About this Topic