Hi @weatherstone,
-
Instead of margin, you can implement the padding in the column like what you did, wrapping the entire slider. Then apply the shadow in the slider instead of the column. This will create a similar effect to a margin. Plus, you shouldn’t apply the margin to a column since it has pre-defined margins for columns to make it responsive. Imagine a set of columns that are supposed to have 100% width, and you added 8% more, it will become 116% and it will overflow. Width should be 100% of the screenshot width or parent’s width.
-
As related to #1, you should apply the shadow in the slider itself. You can convert that CSS as inline CSS and apply it to the classic slider. Like this
border-width: 1px 1px 0px 1px; border-style: solid solid solid solid; border-color: rgb(0,0,0) rgb(0,0,0) rgb(0,0,0) rgb(0,0,0); text-align: center; box-shadow: 0em 0.5em 1.5em 0em rgb(0,0,0);
I just tried that and it works.
Plus yes, the box-shadow applies to the entire box, you can’t remove the shadow from a specific side. There are other samples like from here https://stackoverflow.com/questions/14067358/remove-right-side-of-box-shadow. But other sides are greatly affected since you’ll be using a negative offset (pushing the other sides)
- That’s the background color and it’s actually transparent. It creates a greyish color due to box-shadow. The only way to make it disappear is to put your button as an overlay element of the slider. Hence, adding it within each slide instead of outside the slider.
Thanks!