Forums

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

Home Forums CSS [Solved] Put Arrow On Corner CSS

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

    Hi I am trying to put my drop down arrow on the corner I can only get it to the edge do not know how to make arrow look like it is on corner.

    http://codepen.io/mwbcomputers/pen/jEveu

    #150273
    Paulie_D
    Member

    Which corner?

    How should it look?

    Do you have an image?

    #150275

    Like this image here click on link to view image http://s23.postimg.org/xipjzo6hn/sample.png

    #150276
    Paulie_D
    Member

    Well…you’ll have to rotate it first…then change the position values so it sits right.

    http://codepen.io/anon/pen/vtAbh

    #150293

    Thanks. did you add the negative to right and bottom? and i see z-index new?

    #150301
    Paulie_D
    Member

    Yep.

    You play with the position numbers to get it located correctly. If you set them back to zero it will just hang outside the box.

    The z-index is there to make sure it sits behind the main element. If you don’t do that it will sit in front and possibly hide the
    content of the box.

    To see what I mean, try removing the x-index property and change the border-top color to red.

    The shape of the arrow is determined by the border sizes so you can play with that too. It’s actually very flexible.

    Here…see what I mean.: http://codepen.io/anon/pen/rqlmv

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