Forums
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello to everyone reading this!
I have used 960gs to design a web page.
Inside of it I have implemented flex slider with no-margion (margin:0px) but I have 2 right and left shadows for slider which can’t be shown because the container is 960px and my slider is too.
Is ther any way to overflow those shadows from parent div (container)?
Thanks in advance
Alireza.M
It should be visible by default. If it’s not visible then one of its containers has `overflow:hidden;` set on it.
I didn’t know it can be shown as overflowed.
Actually I have used flex-slider which is using overflow:hidden to hide other slides.
Now How can I achieve those shadows for this slider?
The answer, simply. is that you can’t (AFAIK) while you have overflow:hidden set.
Seconded. You can’t show external shadows if your element has overflow: hidden set.
You can actually.
See my codepen: http://codepen.io/davidyarham/pen/sHiGm
>put a little padding on your container
Isn’t that likely to break his layout given the requirements in the OP?
I forgot to say: you cant have position:relative on your parent though…
> I know putting padding on any of my layouts breaks nothing
Nor mine because I use the box-sizing: box-model property wherever possible.
…but the OP is using 960gs and I think it might?
@DavidYarham: the element with the shadow doesn’t have overflow: hidden set. His parent has. :)
@HugoGiraudel Yes I know, did you look at my codepen?
@DavidYarham: of course I did. My point was, if you set overflow: hidden on an element, don’t expect external shadows to be visible. I think we can agree on that point. :)
@HugoGiraudel the majority of the time yes :) but with the absolute position you can get round it.
>with the absolute position you can get round it.
Yeah…but that’s cheating. :)
@Paulie_D :)