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.
I searched the entire site as well as google and can't find the answer for this. I'm using the galleria module on my site. The problem is that everything aligns to the left. I found the code in the css for the thumnails and have aligned it to the center, but I cannot seem to change the main images above to the center. I've tried everything possible, but it simply won't work. Anyone know how to fix this?
Comments
Comment #1
iivvoo CreditAttribution: iivvoo commentedSubscribe
Comment #2
Ela CreditAttribution: Ela commentedTry adding
.galleria_wrapper{
text-align: center;
}
to your theme css file :) let me know if it worked
Comment #3
iivvoo CreditAttribution: iivvoo commentedPerfect :)
And how about the image description? Can it be centered too?
Comment #4
Ela CreditAttribution: Ela commentedyes, it can..
I don't remember exactly how though... look up css on this using firebug..
Try adding:
.item-list{
text-align: center;
}
but I'm not sure if that's the one that did this or not.. :)
Comment #5
Ela CreditAttribution: Ela commentedok.. i tried to look deeper on how I got this one centered, and am not sure.. so if what I wrote does not help, try looking deeper into css and play with it..
Comment #6
dabellator CreditAttribution: dabellator commentedHow about this one? I can't get my images centered vertically, any ideas? I've gone through one process of setting my wrapper to be viewed (in css) as a table, then did a vertical align on the main image after designating it as a table cell. Worked perfectly...but while everything remained aligned in firefox, the measurements were different in Safari. When I adjusted the css to line everything up in safari, it was all off in firefox.
Let me know if I should add the code to clarify. I'm not at home right now so I don't have acess to the code I wrote, but I can supply it tonight if need be.
Comment #7
forbesconrad CreditAttribution: forbesconrad commentedThis centers everything:
#galleria-content
{
text-align: center
}
Comment #8
Peter Bex CreditAttribution: Peter Bex commentedNot a bug report but a CSS question, and the question was answered. Closing this.