• Resolved Dirk

    (@dirkhag)


    Does anyone know the CSS code for getting a white background instead black….and how to set the transparency of the color?

    I have chosen VenoBox.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Are you referring to the background in the lightbox? Please provide a URL for the site where you are looking to make the change.

    Thread Starter Dirk

    (@dirkhag)

    Yes, the background color in the lightbox…here the link to my website….

    https://dzimages.de/st-hedwig-inside/

    Plugin Author Sayontan Sinha

    (@sayontan)

    You can try this:

    .vbox-backdrop { background-color: rgba(255, 255, 255, 0.8) !important; }

    The first 3 parameters of rgba are the Red, Green and Blue components (they can take a value ranging from 0 to 255), and the 4th is a transparency value (0 is transparent, 1 is opaque).

    Thread Starter Dirk

    (@dirkhag)

    Ok, thank you…this is working….can I set the color of the cross (upper right corner) and the number of the image (upper left corner) independently? Otherwise it is hard to recognise when choosing white background!

    Plugin Author Sayontan Sinha

    (@sayontan)

    Not sure if this will work:
    .vbox-overlay { --vb-tools-color: #333 !important; }

    Thread Starter Dirk

    (@dirkhag)

    No, this doesn’t work, sorry.

    Thread Starter Dirk

    (@dirkhag)

    Expected RBRACE at line 21…..says my CSS editor

    Plugin Author Sayontan Sinha

    (@sayontan)

    It should be --vbox-toools-color, not --vb-tools-color

    Thread Starter Dirk

    (@dirkhag)

    Perfect, thank you so much for your help….very kind of you!

    Thread Starter Dirk

    (@dirkhag)

    Sorry, one last question….how can I change the color of the caption text?

    Thread Starter Dirk

    (@dirkhag)

    No worries….have the solution meanwhile and know how to get the css-commmands.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘CSS for white background’ is closed to new replies.