Remove border around bxslider slides
I am using jquery bx slider. I want to remove the border around the slides. How should I do it? I tried this but it didn't work:
ul.bxslider {
-webkit-box-shadow: 0;
-moz-box-shadow: 0;
box-shadow: 0;
border: none;
}
Any other ways to do this?
source to share
The "box-shadow" is not set to the ul, but to the parent (".bx-wrapper.bx-viewport"), remove the "box-shadow". you also have a border width of 5px, but the color is white (#fff), so choose whatever you want or not.
.bx-wrapper .bx-viewport
{
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
source to share
If you look at the rendered styles bxSlider
you will see the wrapper <div class="bx-wrapper" style="max-width: 1100px;">
and the shadow will be set to
bx-wrapper
. Thus, you can hide the shadow by overriding this class.
The previous solution didn't work for me. It worked when I was adding styles !important
to styles:
.bx-wrapper {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
source to share
The only working solution for me was to change the wrapper class:
slider.bxSlider({
........
wrapperClass: 'your-class-here'
........
});
From the documentation: wrapperClass - string with default value "bx-wrapper".
wrapperClass - class for wrapping the slider. Edit to prevent standard bxSlider styles from being used.
source to share