css - Why is my web have a split colour in the background -


my webpage (a web im doing learn) have background splitted in 2 parts.

enter image description here

here css code

body {   background: #466368;   background: -webkit-linear-gradient(#648880, #293f50);   background:    -moz-linear-gradient(#648880, #293f50);   background:         linear-gradient(#648880, #293f50);     } 

your background repeating due height of body try this:

body {     background: #466368 no-repeat center center fixed;     background: -webkit-linear-gradient(#648880, #293f50) no-repeat center center fixed;     background: -moz-linear-gradient(#648880, #293f50) no-repeat center center fixed;     background: linear-gradient(#648880, #293f50) no-repeat center center fixed; } 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -