After getting the file labelling to work perfectly yesterday I’m now trying to style it using css as I think the titles on rollover are a bit thin for my site. I’ve managed to target it fine on a single page using:
and the lightbox using:
However as I am using the gallery stack in lots of pages I want to target it globally by adding the css to the ‘code’ section in RW. However although the lightbox works, the rollovers stop working?
Any idea if its even possible to do this globally (I’m no css master by a long chalk!)
Also, not too important, but for some reason I can’t center the text in the lightbox. I’m using ‘text-align: center;’ but its not working, even on a page by page basis.
Any help much appreciated,
For, the global CSS you used for the grid seems to be working.
background-color: rgba(0, 126, 0, 1.00);
In order to center the Lightbox caption, just use
float: none !important;
Ah… Sorry, that CSS is on the page. Let me republish with it in the ‘code’ section… There you go. I’ve moved it. Have a look now and you’ll see what I mean…
can you send me a screenshot where you added it in RW ?
Yes, I see it. You have to add everywhere
That’s because the global code gets injected to the page before the CSS of the stack itself. With the important statement you overwrite that.
font-weight: bold !important;
text-align: center !important;
background-color: rgba(0, 126, 0, 1.00) !important;
Ah ok. That makes perfect sense. I’ve learned something good today!
Thanks very much @Jannis