any way to center the captions for when viewing gallery images? mine align left

thx/
chris

CommentFileSizeAuthor
#4 captionscreenshot.png385.37 KBglitz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbeall’s picture

Version: 6.x-2.0-alpha9 » 6.x-2.0-beta2

yep, there sure is..
add this to either your theme's css or node_gallery/node_galley.css
.node-node_gallery-image{text-align: center;}

edit::
it might be good to add the 'p' tag
.node-node_gallery-image p{text-align: center;}

dddave’s picture

Status: Active » Fixed

Note: If your theme supports a local.css file you should use it to make your changes there. By doing so you won't loose your changes when you upgrade.

dbeall’s picture

thanks dddave, I always forget to bring that up.

I have a 'bad habit' of modifying files inside the sites/all/modules/[module-name] directory.

glitz’s picture

FileSize
385.37 KB

awesome thanks! although, i just tried adding .node-node_gallery-image p{text-align: center;} and i added in my themes (zero point) custom.css, as well as node_gallery/node_galley.css.

i have refreshed my browser, as well as cleared drupal's cache, although it still appears aligned to the left. (screenshot attached)

im not sure, maybe my theme is overriding this function. If Im not able to get it centered, its no big deal.

Thanks!!

dbeall’s picture

did you add it to the 'bottom' of the css file?
since css is 'cascading' it needs to be at the bottom so it will override everything above it.

I did test the css declaration on windows xp and wamp server, but I was using the Garland theme.

edit::
If it still won't work, I will install your theme and re-test it till we get it working. leave a note....

glitz’s picture

Hi,

yup, i added it to the bottom of the .css file, in both locations. (the themes custom.css file, as well as node-gallery.css). I have not tried adding it yet to the themes core css file, although that was not recommended.

Thanks,
Chris

dbeall’s picture

Status: Fixed » Active

Hi Chris, do you have a website URL that I can look at..

glitz’s picture

sorry for the delay in response. yes I do, I can not access the url though from my current location but I will send it to you asap.

thanks

dddave’s picture

Status: Active » Fixed

Setting to fixed due to the age of this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.