Using CSS to create a fixed Background image -


i have been unable create background image (gray rectangle) stays in fixed position. . when scroll down page, image continues scroll page instead of staying stationary images do.

this gray background image being used create outline left hand navigation.

body.ms-backgroundimage {     background: url(../landingpage/laipic1.png);     background-size: 250px 455px;     background-position: 8px 280px;     background-attachment: fixed;     background-repeat: no-repeat; } 

how background image before page scrolled down

while page scrolled down, gray background image scrolls.

to have menu sit on side of page going want use css attribute position: absolute;. place you'd use top: 100px; left:10px; using whatever values like.

using can place you'd on page , should stay no matter when scrolling. can put script editor on page if want there or in file in style library , reference in master page.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -