Closed (fixed)
Project:
Field Slideshow
Version:
7.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2011 at 23:48 UTC
Updated:
8 Oct 2012 at 15:55 UTC
I have single images in some nodes and they are left-aligned, looks not good.
But when here is two or more images, images started to aling center and looks good.
How to fix that?
| Comment | File | Size | Author |
|---|---|---|---|
| field-slideshow_bug.gif | 29.28 KB | neek |
Comments
Comment #1
spacegoat1701 commentedFor me, this doesn't even work when multiple images are in place. Example: http://jasonian-photo.com/site-updates/testing-1-2-3
Here's the CSS I've tried to fix the problem:
article .field-type-image {
float: left;
margin: 1px 20px 10px 0;
text-align: center;
padding: 0 auto;
}
article .field-slideshow, .field-slideshow-pager {
margin: 0 auto;
padding: 0 auto;
}
article .field-type-image .field-slideshow-slide {
display: block;
margin: 0 auto;
padding: 0 auto;
}
Comment #2
spacegoat1701 commentedI fixed this by giving the container a set width.
Comment #3
flacoman91 commentedcan you share how you did this? I'm a noob to drupal and css. Thank you!
Comment #4
ptmkenny commentedI've been unable to figure out how to do this as well. Could you please share more details about how you did this?
Comment #5
idflood commentedThe field_slideshow module does nothing on it's own to center images. I've added a little section about that images in the documentation: http://drupal.org/node/1495622#horizontalCenter
Feel free to reopen this issue or create new ones if you find errors, have suggestions, questions, ....
Comment #6
muranod commentedThis post just made my day! Thank you.