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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -