Horizontal CSS list, last entry right-aligned?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vulpes

    Horizontal CSS list, last entry right-aligned?

    Hi,

    I have a horizontal css list and I'd like its last item to be aligned
    to the right end
    of the space given to the list. I can separate it from the rest with
    margin-left: 10em, but that's very error-prone (different resolutions)
    and
    just doesn't look that good.

    Using align: right doesn't work. Using float: right almost works.
    The item is then right-aligned, but it's not in the list anymore but
    one
    line under it.

    Anyone with an answer?
  • Jonathan N. Little

    #2
    Re: Horizontal CSS list, last entry right-aligned?

    vulpes wrote:
    Hi,
    >
    I have a horizontal css list and I'd like its last item to be aligned
    to the right end
    of the space given to the list. I can separate it from the rest with
    margin-left: 10em, but that's very error-prone (different resolutions)
    and
    just doesn't look that good.
    >
    Using align: right doesn't work. Using float: right almost works.
    The item is then right-aligned, but it's not in the list anymore but
    one
    line under it.
    >
    Anyone with an answer?
    URL to what you are trying....

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO

    Comment

    • vulpes

      #3
      Re: Horizontal CSS list, last entry right-aligned?

      URL to what you are trying....

      .... is (or better said a minimal example)


      Comment

      • vulpes

        #4
        Re: Horizontal CSS list, last entry right-aligned?

        Wow, many thanks to you!
        I'll probably look at IE compatibility later on. The
        site'll be non-commercial so as far as I care IE users
        can burn, but others in the team might have other
        opinions...

        Comment

        Working...