html background repeat, not fixed with css -
this question has answer here:
here raw code https://jsfiddle.net/m6mb99z5/
<!doctype html> <head> <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1"> <title>todo-list</title> <!-- tab icon --> <link type="tabicon" rel="shortcut icon" href=".ico"> <!-- google font links --> <link href="https://fonts.googleapis.com/css?family=roboto:400,500,700" rel="stylesheet"> <!-- fontawesome.io icons --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- bs css link min cdn --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-bvyiisifek1dgmjrakycuhahrg32omucww7on3rydg4va+pmstsz/k68vbdejh4u" crossorigin="anonymous"> <!-- has below bootstrap can overwrite there css --> <link type="text/css" rel="stylesheet" href="todo-list.css"> </head> todo-list
- x go potions class
- x buy new robes
- x visit hagrid
<!-- jquery (uncompressed ver.) / must @ body of body run -->
i've tried know in css, , googled issue looked here. repeats if cut off in middle of html document. it's simple can't figure out.
this fixed
body { font-family: roboto; background: no-repeat center center fixed; background-image: linear-gradient( 135deg, #fff6b7 10%, #f6416c 100%); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
Comments
Post a Comment