Forums

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

Home Forums CSS Price Menu Ellipsis

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43030
    copaesthetic
    Member

    I’m building a price menu and wanted to link the service with a price using ellipsis ([like this](http://i.imgur.com/YAxmlCl.png)).

    I am using an unordered list with a text-align: right

    Service………………$99

    Service-Deluxe….$7

    Service-Basic…….$11

    Is there a jQuery plug-in for something like this? Or should I just manually add periods within the HTML? Thanks!

    #126399
    wolfcry911
    Participant

    Here’s a similar method using a dl and a pseudo element (in the past I’ve used background images – still may).

    http://codepen.io/wolfcry911/pen/kaluI

    #126451
    wolfcry911
    Participant

    Thanks. For the record, I wasn’t implying that my way was better – I just like showing alternatives.

    #127815
    copaesthetic
    Member

    Thanks @wolfcry911, I like your method.

    Before using it, I tried manually entering periods, but that still left text ragged and unaligned, plus its not very elegant. Good call with using dl instead of ul tags. I’ve taken out the width properties and replaced it with overflow: hidden for my liquid layout: http://cdpn.io/DHcnr

    #128875
    copaesthetic
    Member

    Continued on new thread, Price Menu Ellipsis 2 (https://css-tricks.com/forums/discussion/23548/price-menu-ellipsis-2#Item_1)

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