Read the statement by Michael Teeuw here.
Trying to add a background picture, {Body} doesnt work
-
Hi!
Im trying the code:
body {
background-image: url(“paper.gif”);
background-color: #cccccc;
}Can’t get it to work tho, kinda new to this.
I want a faded out picture behind the mirror, so my plan is to choose an image and then place a layer of grey over with aprox 50-60% transparencyAny takers?
-
@oscarkindberg did you place the
paper.giffile in the css directory? -
@oscarkindberg You will not be able to float the layer of grey over top. The background services do not support layering. I had tried multi layers for background images and had to make a single background image myself in Gimp to make it work.
-
Thanks!
No I wasn’t embarrassing enough haha.Got it right now tho!
-
@Wedee I realised that after several tries and errors. I work in photoshop on a daily basis and I think in layers so to speak.
-
Yes I fully understand, but in html you can layer exactly like you are thinking, but the tools used by Magic Mirror do not support it yet. I spent several hours thinking I was formatting it wrong until I realized this.
-
@Wedee Works for me, z-index and opacity does the layering just fine,
@oscarkindberg
But unless you want the fade to be animated it should be made directly in the image, easier for the raspberry to process.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login