Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Background image opacity

Background image opacity

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 511 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fm
    wrote on last edited by
    #1

    Hey everyone,

    I've got my code for my background image:

    body[data-type="page"][data-id="428"] {
    background-image: url();
    background-size: cover;
    background-attachment: fixed;
    }

    but I am struggling with changing the background image opacity. I would still like to keep the menu/site title/text etc that sits on top of the background unaffected by changing the opacity. Any ideas? :)

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by mariusjopen
      #2

      Hi @fm

      if you give the body a background image it will be on the lowest level of your website.
      There is nothing which can be under it. So there is no need to change the opacity of the body. It will affect the whole website.

      Why don't you use the default background image which you can use in the Gridder?

      Otherwise I recommend you to use a custom HTML. Create a div box and use custom CSS to give that box a background:

      background-box {
      background-image: url(YOUR IMAGE URL);
      background-size: cover;
      positiont: fixed;
      width: 100vw;
      height: 100vh;
      }
      

      I hope I could help!

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Online Users
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search