Forums

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

Home Forums CSS Positioning outside of overflow scroll

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #147067
    seanjacob
    Participant

    I would like to have an arrow appear before some text BUT the arrow needs to appear outside the div. Using position:absolute is fine until I add the needed overflow-y:scroll

    http://codepen.io/seanjacob/pen/oHzcq

    I rather not use padding-left on the div.

    #147074
    Paulie_D
    Member

    Do you expect the arrow to scroll with the text?

    Pretty sure it can’t do that if you’re restricting overflow.

    #147075
    seanjacob
    Participant

    Yes I do expect the arrow to scroll with the text.

    #147078
    Paulie_D
    Member

    Not going to happen with CSS, I suspect….given that overflow restriction is a requirement.

    Perhaps a JS solution but I’m not seeing, TBH, the point.

    Surely a better “Look At This” option exists?

    I’d be interested in understanding what this is for to further my understanding.

    #147085
    seanjacob
    Participant

    There are other design options but this is the design the client wants and I didn’t want to say it wasn’t possible yet.

    I have gone against my word and have used padding-left:20px with margin-left:-20px to get what I wanted, I have updated the pen.

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