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

Home Forums CSS Fixing text padding inside this div?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #158304

    Hey guys,

    I have a problem I just can not figure out. :(

    I have a div with my content which has a transparent background, I’m quite happy with that, it stays where it should even upon resizing. The div contains a lot of


    p> with text which you can scroll down to read.
    The problem is, that if you scroll down the text will disappear at the very bottom and very top of the div – I would like it to fade out or disappear with 20px padding top/bottom.

    link fiddle…

    Typical solutions is adding a border or other class over the div like this example,

    link fiddle…

    But it will not work with a transparent background as the text will just show right through :)

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