WordPress.org

Ready to get started?Download WordPress

Forums

Want to make a custom sidebar. (6 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    I want to make a custom sidebar (I took out the original menu and shrunk the main table) that will eventually, once I figure that part out, pull some data from other places. However, if I create a sidebar class and put this in the index.php:
    '<div id="sidebar">blah blah blah</div>'
    and the CSS says . . .
    '#sidebar {
    position: absolute;
    margin-left: 550px;
    margin-right: 0px;
    margin-top: 5px;
    margin-bottom: 30px;
    background-color: #7ba1cc;
    border: 1px solid #344563;
    position: relative;
    color: #ebedf0;
    font-size: 110%;
    font-weight: bold;
    }'
    It's everywhere but where I want it to be. I want it to sit near flush to the main table (i.e. a second column). If I stick it up top near the "rap" code somewhere it sits about where it should, but pushes down all the posts.
    If I put it where the <div id="menu"> code was, it's down at the bottom.
    How do I fix this?
    http://tekmonki.com

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    Sorry, I tried to post this in the templates/design forum but posting doesn't seem to work in there for some reason.

  3. Fruity
    Member
    Posted 9 years ago #

    Instead of using the margin to position it, try "top:5px; left:550px;". Also, you should take out either the relative or absolute positioning, there's no point to having both of them in there.

  4. Anonymous
    Unregistered
    Posted 9 years ago #

    Dur. I didn't even see the second positioning going on in there. That fixed it.
    One step down . . . 54 million to go . . .
    Thanks!

  5. Fruity
    Member
    Posted 9 years ago #

    No problem! Is your menu working fine now?

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    Well, I've got soooo much to do still. I feel really facking lost sometimes, I swear. It looks ok now, but it's totally not what I want.
    I "get it", but then I don't get it.
    Ahhhhhhhhh!
    http://wordpress.org/support/3/13909

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.