Can't position credit line properly (4 posts)

  1. cormanaz
    Posted 9 years ago #

    Hello. I'm trying to tweak theme andreas01-12 to add a credit for an editor on the left sidebar. Here is the relevant bit of code with the mod in question on the last line before the close div tag:

    <div id="leftside">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar') ) : else : ?>
    <h2 class="hide">Main menu:</h2>
    <ul class="page">
    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
    <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <?php endif; ?>
    <span style="top-margin: 30px; border-top: solid #FFFFFF">Production Editor: Kris Acheson</span>

    My intent is to put a line between the credit and the menu and to add some top space before the credit. No matter that I try (p tag instead of span, absolute position instead of margin, etc.) the credit stubbornly stays right below the menu with no border above. What am I doing wrong?


  2. Bodhipaksa
    Posted 9 years ago #

    have you tried "margin-top" rather than "top-margin" (which is incorrect).

  3. cormanaz
    Posted 9 years ago #

    Right you are. However I changed it and the problem persists.

  4. Bodhipaksa
    Posted 9 years ago #

    Oh, there's no closing semicolon after the #FFFFFF either. You'd better fix that.




Topic Closed

This topic has been closed to new replies.

About this Topic