1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

overflow: scroll; other options for a scroll bar?

Discussion in 'CSS' started by xbat, Jan 30, 2019.

  1. #1
    I have overflow: scroll; the only issue I am now getting is when I hover over a image and it expands in the css it only displays in the css box when I am using overflow:scroll; .. If I do not use overflow:scroll; then it displays out of the parent box. I have spent hours searching. But can not seem to find a solution. The pain is I still need the scroll but can't seem to find another solution. Anyone have any thoughts?
    SEMrush
     
    xbat, Jan 30, 2019 IP
    SEMrush
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,439
    Likes Received:
    355
    Best Answers:
    28
    Trophy Points:
    335
    #2
    Maybe if you showed us your markup and css we wouldn't have to guess what you have that might be causing your issue. Best way to help us help you, is to make a minimal test case. Next is link to your site so we can see it there.

    gary
     
    kk5st, Jan 30, 2019 IP
  3. alfieindesigns

    alfieindesigns Well-Known Member

    Messages:
    122
    Likes Received:
    5
    Best Answers:
    2
    Trophy Points:
    130
    #3
    Hello @xbat ,
    If you want to know all the options freely check it here with examples and maybe you'll have idea what's wrong with your markup.
    https://developer.mozilla.org/en-US/docs/Web/CSS/overflow

    Else please provide your sample code so we can give you exact solution...
     
    alfieindesigns, Feb 18, 2019 at 8:08 AM IP
  4. mmerlinn

    mmerlinn Notable Member

    Messages:
    1,939
    Likes Received:
    230
    Best Answers:
    6
    Trophy Points:
    240
    #4
    Any thoughts? Yes.

    If you want us to help you, you MUST help us. Trying to diagnose a patient without seeing the patient is impossible, like trying to get your doctor to diagnose your ills over the phone.
     
    mmerlinn, Feb 18, 2019 at 9:17 AM IP
    kk5st likes this.
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,439
    Likes Received:
    355
    Best Answers:
    28
    Trophy Points:
    335
    #5
    As a general rule, a better value for the overflow property is to use {overflow:auto;}. It also creates a new block formatting context as does any value other than the default 'visible;'. Try that to see if it works as desired.

    gary
     
    kk5st, Feb 18, 2019 at 1:43 PM IP