This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Pages: 1 - Last Post: 2 Jan 26, 20:42 Last Post By: rcunnew
rcunnew

Posts: 18
Registered: 23-Feb-2008
Formatting info panel
Posted: 1 Jan 26, 16:22
 
  Click to reply to this thread Reply
I'm sure this is possible but I can't find where or how. Can anyone help?

1. How do you change the colour of the info panel box (containing the caption) in the lightbox?

2. Is there an easy way to centre the text? Other than adding code to every caption.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Formatting info panel
Posted: 1 Jan 26, 21:36   in response to: rcunnew in response to: rcunnew
 
  Click to reply to this thread Reply
You can change the background color of the box with a little custom CSS:
.lightbox .lightbox-caption .caption {background-color: red;}
In my tests, the text is already centered. Perhaps one of the styles does something different with it. Can you give us a link to an album in which the captions are not centered? But you can try adding it to the custom CSS:
.lightbox .lightbox-caption .caption {background-color: red; text-align: center;}
rcunnew

Posts: 18
Registered: 23-Feb-2008
Re: Formatting info panel
Posted: 2 Jan 26, 15:47   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks very much for the helpful suggestions but I am still having problems here:

1. I can change the box colour but the colour codes from elsewhere in the settings seem to have a strange effect here. For example, I tried making the box effectively invisible by using the same mid-grey colour as the lightbox background, #ff666666 in my case, taking this from lightbox | settings | background colour. But I get a strange dark red.

2. The box containing the buttons next to the caption isn't included in lightbox-caption. Can I similarly identify this in the custom CSS?

3. The text doesn't centre when I use the code you suggested. It is actually already centred on my phone, but on my PC it's aligned left, which tends to look a bit scruffy when some lines of the caption are quite long.

I haven't made these changes on my live site but you can see it at https://robertcunnew.uk
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Formatting info panel
Posted: 2 Jan 26, 16:10   in response to: rcunnew in response to: rcunnew
 
  Click to reply to this thread Reply
The current version of Tiger is 7.1.4. You're using 5.1.0, which is over two years old.

That means that I can't help. The page coding is now very different, so the custom CSS will not be effective, or it will have unexpected, unwanted effects.

Update the skin.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Formatting info panel
Posted: 2 Jan 26, 18:25   in response to: rcunnew in response to: rcunnew
 
  Click to reply to this thread Reply
Regardless of what version of Tiger you're using, if you can target the correct CSS class(es), you should try this if you're trying to get rid of a differing background color:
background-color: transparent;
That often avoids the kinds of transparency collisions you're running into. The CSS classes will be different in an older version than they are in the current version.

Caption entering in that older version of Tiger would be very difficult, indeed. The newest version centers by default.
rcunnew

Posts: 18
Registered: 23-Feb-2008
Re: Formatting info panel
Posted: 2 Jan 26, 20:42   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks for your help. i'll look into the latest version.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums