Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, when I'm using bxslider the image does not fill up the space. Instead, I get a white blank space on the left side of the slider, which is followed by the right end of the adjacent slide.
Update: While trying to apply it on a new site, I get a problem with views slideshow css overriding the bxslider css.
Please refer to the picture in #6
Please help me with this problem,
Thank you very much!
Comment | File | Size | Author |
---|---|---|---|
#6 | Capture.PNG | 10.33 KB | JieXiannn |
Capture.PNG | 46.53 KB | JieXiannn |
Comments
Comment #1
JieXiannn CreditAttribution: JieXiannn commentedComment #2
Mschudders CreditAttribution: Mschudders commentedThis seems to be an CSS problem.
You have a link where I can view it ?
Comment #3
JieXiannn CreditAttribution: JieXiannn commentedSolved with
.bx-wrapper img {
display: block;
max-width: 100%;
margin-left: -20px; <---
}
Thanks for the fast reply!
Comment #4
JieXiannn CreditAttribution: JieXiannn commentedComment #5
JieXiannn CreditAttribution: JieXiannn commentedComment #6
JieXiannn CreditAttribution: JieXiannn commentedComment #7
JieXiannn CreditAttribution: JieXiannn commentedComment #8
JieXiannn CreditAttribution: JieXiannn commentedFound the problem in bxslider_views_slideshow.theme.inc:
switch ($align_image) {
case 'center':
drupal_add_css($selector . ' { margin-left:auto; margin-right:auto; }', 'inline');
break;
case 'right':
drupal_add_css($selector . ' { margin-left:auto; }', 'inline');
break;
default:
drupal_add_css($selector . ' { margin-right:auto; }', 'inline');
I solved it by setting Alignment Image to left.
Comment #9
JieXiannn CreditAttribution: JieXiannn commentedComment #10
smurfxx CreditAttribution: smurfxx commentedThis bug is still here, I used the css trick for now