WordPress.org

Ready to get started?Download WordPress

Forums

Virtue
[resolved] Sidebar align right (4 posts)

  1. stecmedia
    Member
    Posted 7 months ago #

    Hi, I've got at super simple question! (But I'm too much of an idiot myself, apparently)

    I would like the menu items in my sidebar (as seen here) to float to the right, yet when I insert the following code to the custom css, they just get all messed up. What is missing?

    .sidebar a {
    float:right;
    }

    Thanks in advance

  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 7 months ago #

    Align them right with 'text-align'
    http://www.w3schools.com/cssref/pr_text_text-align.asp

  3. stecmedia
    Member
    Posted 7 months ago #

    Yeah, that would seem another easy possibility, yet:

    .sidebar a {
    text-align:right;
    }

    does not work either. Then simply nothing happens.

    Oh, I figured it out.
    I did this:

    li {
    text-align:right;
    }

    Of course, this will mess up all my lists, but it'll do for now. I might also just make the custom menu myself using a simple text-widget :)

    Thanks for the help

  4. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 7 months ago #

    What about:

    .sidebar li { text-align: right; }

    ?
    http://stackoverflow.com/questions/16762657/how-to-target-items

Reply

You must log in to post.

About this Theme

About this Topic