Does anybody know if there is there a way to make the colorbox title field always center the text vertically, even if there is more than one line of text in it. I suppose the css command vertical-align: middle; for the #cboxTitle is intended to do so. But it is not working. I temporary tried (in firebug) inserting a p tag with the command vertical-align: middle; around the text element as mentioned here http://css-tricks.com/vertically-center-multi-lined-text/ and it works, when I use the parent div (cboxTitle) with the command display: table;. But I dont know how to insert p tags around the text element. Please also have a look at the attached screenshots showing my problem or take a look at the website: http://www.schroeter-ht.de/en/fields-of-work/special-constructions

Any help would be greatly appreciated.

Best Regards

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brenes’s picture

anybody please?

dolly nyc’s picture

if you're using Views then you can rewrite the field to include the p tag around that text element.

brenes’s picture

Thank you for your response. But I didnt use views, the gallery is made of cck fields only.

BWPanda’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Category: support » bug
Status: Active » Needs review
FileSize
580 bytes

This seems to be a bug with the Stockholm Syndrome style. The CSS is there to make the title centered vertically, however it's being overwritten by some inline styles on the #cboxTitle element.

I'm not sure where those inline styles are coming from, so the attached patch simply adds '!important' to override the overrides.

BWPanda’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
FileSize
532 bytes

This is still an issue in the 2.x branch.
As the filenames have changed, I've attached an updated patch.

frjo’s picture

Title: Colorbox Title vertically centered text » Stockholmsyndrome title vertically centered text.
Status: Needs review » Fixed

Committed to 7.x-2.x.

Status: Fixed » Closed (fixed)

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