In html + css
, I want to add html
page as a page background
. i created it as a slices from Photoshop then saved it as html/image.
I used to use image as a background like:
body
{
background-image:url('../../resources/bacground.png');
background-size: 100% 100%;
background-repeat: no-repeat;
}
But now i don’t know how to place html
as a background.
4
Answers
Background Image
One way to do the background is to use
background-size: cover
as per this post:There is no simple answer here, what you’re probably going to want to do is make the “html background” in a absolutely positioned container, then put a transparent div over the top, then you should be able to place your real html content on top and the background shouldn’t be interactive
You can’t do that now.
However you can save your html as svg and then use
In the future you will have the possibility to import html directly with a link
Perhaps you can also wrap your background html into a div , and make it unresponsive and absolute. And drop the real html on top of it.
I’m not sure if that is what you really want but if you want to use links in an image you can use map + area or this (svg)