Forums

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

Home Forums CSS CSS Arrow for LI

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #30119
    hurricanepkt
    Member

    Trying to use the
    http://www.dinnermint.org/css/creating-triangles-in-css/
    method to create an arrow


    _________________

    Lorem
    / /
    /________________/

    using this using only the



    I would prefer to not use images or jquery but just css

    i have been able to use

            

    but would rather not have all that design stuff in the html

    #78824
    zackw
    Member

    Honestly i would just use an image, why try to make something harder than it has to be? Using the shape tool in photoshop choose the arrow and then just draw it really quick, trim it down after with the trim tool and then your done, it will be like 500bytes if u pick .png

    #78627
    jamygolden
    Member

    You won’t be able to do that specifically with this html:



    Here is an image which might clear things up for you.

    #78662
    Damion
    Member

    I think this is what you want:
    http://dl.dropbox.com/u/10548536/point.html

    #78669
    jamygolden
    Member

    Ahhh, before and after pseudo classes… Nice, I’ve never thought of that.

    Note: this will have compatibility issues in IE6 and 7

    #78670
    Damion
    Member

    Maybe add some jQuery to append and prepend the divs in, That should fix it for IE6 and 7 .

    #78682
    li:before { width: 0; height: 0; line-height: 0; display: block; content: "."; font-size: 0; border-width: 5px; border-color: black transparent transparent transparent; }
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.