Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body, html {
- /* img cover all page */
- height: 100%;
- /* margin padding to Zero*/
- margin: 0;
- padding: 0;
- }
- .bgimg {
- /* bg image */
- background: url(bgimg.jpg);
- /* full screen */
- height: 100%;
- /* center the bg imag */
- background-position: center;
- /* scale and zoon in the img */
- background-size: cover;
- /* add position: relative to enable absultely position elements inside the img (place text) */
- position: relative;
- /* add a white text inside the bgimg container */
- color: #fff;
- /* add font */
- font-family: cursive;
- }
Add Comment
Please, Sign In to add comment