Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML:
- <!DOCTYPE html>
- <html>
- <head>
- <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
- <title>Home</title>
- </head>
- <body>
- <div id="whitetop">
- </div>
- <div id="whitebot">
- </div>
- <img src="earth2.jpg"/ id="earth">
- </body>
- </html>
- CSS:
- html {
- height: 100%;
- background-color: #272C34;
- margin: 0%;
- padding: 0%;
- }
- body{
- height: 100%;
- position: static;
- margin: 0%;
- padding: 0%;
- }
- #whitetop {
- width: 100%;
- height: 4%;
- position: absolute;
- background-color: #E8E8E7;
- margin-top: 10%;
- margin-left: 0%;
- margin-right: 0%;
- margin-bottom: -10%;
- padding: 0%;
- z-index: 1;
- }
- #whitebot {
- width: 100%;
- height: 30%;
- position: absolute;
- background-color: #E8E8E7;
- margin-top: 32%;
- margin-left: 0%;
- margin-right: 0%;
- margin-bottom: -32%;
- padding: 0%;
- z-index: 1;
- }
- #earth {
- width: 100%;
- height: 20%;
- position: absolute;
- margin-top: 10%;
- margin-left: 0%;
- margin-right: 0%;
- margin-bottom: -10%;
- z-index: 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement