Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS aligning list items and bullets to the right

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #244596
    drone4four
    Participant

    Check out this test case: http://codepen.io/Angeles4four/pen/rLPXzj

    How do I make the circle bullets appear to the right of each of the cat names along the right margin, instead of having the bullets appear all the way across the other side of the web page at the left margin?

    #244598
    giudev
    Participant

    Two solutions.

    1)

    ul {
     direction: rtl;
    }
    

    2)

    .bullets-left {
        text-align: right;
        list-style-type: none;
        padding-right: 20px;
    }
    
    .bullets-left {
     text-align: right;
     list-style-type: none;
     padding-right: 20px;
     position: relative;
    }
    
    .bullets-left:after {
      content: "•";
      position: absolute;
      top: 0px;
      right: 0;
    }
    
    #244600
    Paulie_D
    Member

    Or just change the direction

    http://codepen.io/Paulie-D/pen/QEoboA

    #244601
    giudev
    Participant

    yep I believe direction is the best way, that’s the reason I suggested it as 1st solution ;)

    #244602
    Paulie_D
    Member

    I believe direction is the best way, that’s the reason I suggested it as 1st solution ;)

    Oops. :)

    Missed that.

    #244613
    drone4four
    Participant

    Thank you both, @giudev and @Paulie_D.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.