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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -