Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #473153

    Hi,
    Can someone please tell me if it’s possible to highlight the captions on my full screen slider. Unfortunately My background picture is quite colorful so the text can not be easily seen. Also can you highlight it for only one slide? or do you have to high light text on all slide? I’ve attached an example of what I want to do below. Thanks.

    Example of what I want to do: http://s13.postimg.org/62bc7esh3/example.jpg

    #473350

    Hey shoo!

    In order to add a highlight to the text, you can try using the below css, but it would affect each slide:

    .avia-caption-title {
      font-size: 22px;
      background-color: #00ff00;
      width: 200px;
    }
    .avia-caption-content {
      font-size: 12px;
      background-color: #00ff00;
      width: 500px;
    }

    Alternatively, you could enlist the help of a freelancer to add this feature to the first slide only.

    Regards,
    Dake

    #473471

    Hi Dake, thanks for the reply. Unfortunately that CSS code creates a “box” around the content, so even empty space becomes highlighted. Is there a way to get it to wrap around the “text only”. Thanks!

    #473806

    Hey shoo!

    The width in my earlier css was an example. It needs to be adjusted to encapsulate the text like it’s shown in the below screenshot
    http://www.awesomescreenshot.com/image/409089/535d8c0282a72e0160fd841cba49049f

    Here is the css I used for this example:

    .avia-caption-title {
      font-size: 22px;
      background-color: #000000;
      width: 730px;
    }
    
    .avia-caption-content {
      font-size: 18px;
      background-color: rgba(0, 0, 0, 0.7);
      width: 440px;
    }

    Best regards,
    Dake

    #475242

    Hi Dake,
    Thanks but unfortunately I have 3 slides with texts of different lengths so the code won’t work properly.

    I have found a way to get what I wanted though, and it’s simply using the <mark> text </mark> tag! The default color is yellow, so to change the color of the highlight you’ll need to add background color eg for black: <mark style=”background-color:#000000;”> text </mark>

    The only problem though is for the “caption title”, it changes to black when I add the <mark> tag, even though I’ve set the font color to white. The problem does not seem to occur for the “caption text” though. So wondering if anyone can shed some light? I want to change the title to white as well.

    #475397

    Hi shoo!

    Can try adding !important to the background color and font color like the example below.

    mark {
        background-color: 000000 !important;
        color: #ffffff;
    }

    Cheers!
    Dake

    #475429

    Thanks so much Dake, finally got it the way I want it!

    #475437

    Hey!

    You’re welcome :)

    Glad to know we could help.

    Regards,
    Dake

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Highlight Caption Text on Fullscreen Slider’ is closed to new replies.