Back Home

Open Designs

Community. Driven.

    • CommentAuthor4evrblu
    • CommentTimeJan 5th 2007 edited by 4evrblu on the 16th January 2007 at 01:19:59 EST
     
    http://totalphysiqueonline.com/ is my primary site.

    I decided to create a play-blog that I could use to experiment with different templates. I stumbled across a 2 column site that, while I would have preferred it be a 3 column site, struck my fancy as looking nice.

    http://cfcure.com/wordpress/

    I am customizing it (children pages) and eventually changing the logo image, but for now one thing is bugging me: it's the archives.php page.

    If you go to the new theme for TPO above, and click the archives page, you will notice that while the archives list is formatted, it is not properly positioned. I want to move it a bit lower, and more toward the center of the content section.

    The Archives list is surrounded by a div tag set to class="archives" Here is the style as found in my style.css:

    #archives ul{

    display:block;

    margin:140px auto auto 140px;

    padding:5px 4px 4px 10px;

    position:absolute;

    text-transform: capitalize;

    width:140px;

    }


    The tags in archives.php look like this:

    <div id="content">
    <div id="page">
    <div class="archives">
    <h2 id="months"><?php _e('Archives by Month:'); ?></h2>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    <h2 id="categories"><?php _e('Archives by Category:'); ?></h2>
    <ul>
    <?php wp_list_cats(); ?>
    </ul>
    </div>
    </div>
    <?php edit_post_link(__('Edit this entry.'), '<p>', '</p>'); ?>
    </div>

    No matter what I do, I cannot shift the archives using the above style. I am pretty tired, so I am sure I am missing something, and I need some fresh eyes.

    Thanks

    PS: how does one post PHP code in the forums?
    •  
      CommentAuthormegadeth
    • CommentTimeJan 5th 2007 edited by megadeth on the 05th January 2007 at 22:22:45 EST
     
    Enclose it in <code> tags. wink
    • CommentAuthor4evrblu
    • CommentTimeJan 5th 2007
     
    <div id="content">
    <div id="page">
    <div class="archives">
    <h2 id="months"><?php _e('Archives by Month:'); ?></h2>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    <h2 id="categories"><?php _e('Archives by Category:'); ?></h2>
    <ul>
    <?php wp_list_cats(); ?>
    </ul>
    </div>
    </div>
    <?php edit_post_link(__('Edit this entry.'), '<p>', '</p>'); ?>
    </div>
    • CommentAuthor4evrblu
    • CommentTimeJan 5th 2007
     
    OK cool. I didn't see that button.

    Sigh....So, as to my problem of getting the archives positioned correctly, am I mistaken to have created an archive style? I was sure it would work.
    •  
      CommentAuthormegadeth
    • CommentTimeJan 5th 2007
     
    I'm not quite sure if I understand what you are asking. Where exactly do you want the list to be?
    • CommentAuthor4evrblu
    • CommentTimeJan 5th 2007
     
    I am sorry for the confusion, I am tired and I know I was not very clear.

    Specifically I would like Archives down about 1/4 of an inch and slid right by 1/2 an inch. :) I would have thought that margins would have allowed me that control, but for some reason my style is having no effect on the list.
    • CommentAuthor4evrblu
    • CommentTimeJan 5th 2007
     
    http://cfcure.com/wordpress/home/

    If you look here, you will notice that the word HOME is flush with the words RECENT POSTS.

    Archives scoot upward a bit and over to the left a tad. Leaves too much empty space.
    •  
      CommentAuthormegadeth
    • CommentTimeJan 5th 2007
     
    Have you tried adjusting the padding? Just a thought.
    •  
      CommentAuthormegadeth
    • CommentTimeJan 5th 2007
     
    Oh... I understand what you are talking about now. I'll go check it out.
    • CommentAuthor4evrblu
    • CommentTimeJan 5th 2007
     
    Atually, yeah, I did. It's weird, but no matter what changes I make to #archives, archives.php does not see it.

    I am certain I am overlooking something simple.
    •  
      CommentAuthormegadeth
    • CommentTimeJan 5th 2007 edited by megadeth on the 05th January 2007 at 23:00:42 EST
     
    Have you tried you can try adjusting the margin for #months?

    By the way, what misled me at first was that you showed the css for #archives ul which I don't think really pertains to what you are trying to accomplish.
    • CommentAuthor4evrblu
    • CommentTimeJan 5th 2007
     
    I don't think I have a style called months in the css sheet. If you look at the above code (sorry it is such a mess) you can see that there is a div tag with class="#archives" in it. That should work.

    Anywa, its 2 Am and I need sleep. Post any additional thoughts you may have ane I will pick up where I left off tomorrow :)

    Thnanks for your help.
    •  
      CommentAuthormegadeth
    • CommentTimeJan 5th 2007 edited by megadeth on the 05th January 2007 at 23:07:55 EST
     
    <h2 id="months"><?php _e('Archives by Month:'); ?></h2>
    ^^ That is what I was talking about. Perhaps you could try creating a style for it.

    #archives ul{

    display:block;

    margin:140px auto auto 140px;

    padding:5px 4px 4px 10px;

    position:absolute;

    text-transform: capitalize;

    width:140px;

    }

    ^^ This is only for the unordered list.
    • CommentAuthor4evrblu
    • CommentTimeJan 6th 2007
     
    I have experimented with LI,UL and no list at all. It doesn't seem to matter. The style has no affect. I switched to #archives li, for example. Nothing doing.
    •  
      CommentAuthormegadeth
    • CommentTimeJan 6th 2007
     
    Since the problem is not within the list itself, why don't you try simply applying style to #archives?
    •  
      CommentAuthormegadeth
    • CommentTimeJan 6th 2007
     
    Posted By: 4evrbluAnywa, its 2 Am and I need sleep. Post any additional thoughts you may have ane I will pick up where I left off tomorrow :)

    Didn't sleep very long, huh? It's 4 AM here so I guess I should be getting to bed now. tongue
    • CommentAuthor4evrblu
    • CommentTimeJan 6th 2007
     
    I had an asthma attack. I am OK, but it woke me up, so now I am trying ot breath again.

    As for applying style to #archives, I am confused. #archives is inside my style sheet already.

    What do you mean?