redconservatory
redconservatory

Reputation: 21924

Align to the right instead of the left

I have a unordered list that is a series of dots for a slider. How do I make it align to the right instead of the left, especially if the dots are removed or added?

Sometimes there might only be one

  • , sometimes there will be several.

    I have an example here: http://jsfiddle.net/redconservatory/ghDdm/

    I put the word "link" in where there will be a dot....

    Upvotes: 1

    Views: 137

  • Answers (5)

    fengd
    fengd

    Reputation: 7569

    check this http://jsfiddle.net/ghDdm/7/

    .box floats to right, li floats to right

    Upvotes: 1

    w3uiguru
    w3uiguru

    Reputation: 5895

    If i am getting your problem then below fiddle have your solution.

    Try this fiddle: http://jsfiddle.net/ghDdm/6/

    Upvotes: 1

    Bogdan Emil Mariesan
    Bogdan Emil Mariesan

    Reputation: 5647

    Not sure if i understood what you want but try the following:

    http://jsfiddle.net/ghDdm/4/

    Upvotes: 1

    Diego
    Diego

    Reputation: 18349

    Not sure of what you are trying to accomplish here, but have you tried:

    ul {
        float: right;
    }
    

    ??

    Upvotes: 0

    PinnyM
    PinnyM

    Reputation: 35533

    Try changing float: left; to float: right;

    li {
        list-style: none;
        float: right;
    }
    

    Upvotes: 2

    Related Questions