Anikasingh (Talk | contribs) |
Anikasingh (Talk | contribs) |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
+ | |||
+ | <head> | ||
+ | <style> | ||
+ | .parallax { | ||
+ | /* The image used */ | ||
+ | background-image: url("http://dhiglobal.com/wp-content/uploads/2016/07/placeholder.jpg"); | ||
+ | |||
+ | /* Set a specific height */ | ||
+ | min-height: 300px; | ||
+ | |||
+ | background-attachment: fixed; | ||
+ | background-position: center; | ||
+ | background-repeat: no-repeat; | ||
+ | background-size: cover; | ||
+ | } | ||
+ | </style> | ||
+ | </head> | ||
+ | |||
+ | |||
<body> | <body> | ||
<br> | <br> |
Revision as of 02:54, 2 October 2017