Overflow:hidden not working as expected in Google Chrome

后端 未结 2 1063
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 05:39

I\'m having a problem with the \"overflow: hidden\" CSS property.

In Firefox, IE8 and Safari 5 when I apply this property to a div that is used for containing ad ban

相关标签:
2条回答
  • 2021-01-14 06:23

    Likely there is some issue with your css or layout.

    You could sidestep the issue by changing the z-index on your sidebar to be greater than the z-index of your ad, this would cause it to render above the add regardless. Make sure you define some value for position.

    0 讨论(0)
  • 2021-01-14 06:36

    I was facing problems with the below css in chrome. It was not working at all.

    div.hidden {
        margin:0px 0px 10px 0px;
        overflow-y:hidden;
    }
    

    Now, I changed the above CSS as,

    div.hidden {
        margin:0px 0px 10px 0px;
        overflow-y:hidden;
        position:relative;
    }
    

    It works fine for me.

    0 讨论(0)
提交回复
热议问题