forked from J-JD/MDN-3-HTML-MDN_splash_page_start
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put CSS code in index.css file
- Loading branch information
Showing
2 changed files
with
89 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* header and body setup */ | ||
|
||
html { | ||
font-family: "Open Sans", sans-serif; | ||
background: url(pattern.png); | ||
} | ||
|
||
body { | ||
width: 100%; | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
background-color: white; | ||
position: relative; | ||
} | ||
|
||
/* Header styling */ | ||
|
||
header { | ||
height: 150px; | ||
} | ||
|
||
header img { | ||
width: 100px; | ||
position: absolute; | ||
right: 32.5px; | ||
top: 32.5px; | ||
} | ||
|
||
h1 { | ||
font-size: 50px; | ||
line-height: 140px; | ||
margin: 0 0 0 32.5px; | ||
} | ||
|
||
/* main section and video styling */ | ||
|
||
main { | ||
background: #ccc; | ||
} | ||
|
||
article { | ||
padding: 20px; | ||
} | ||
|
||
h2 { | ||
margin-top: 0; | ||
} | ||
|
||
p { | ||
line-height: 2; | ||
} | ||
|
||
iframe { | ||
float: left; | ||
margin: 0 20px 20px 0; | ||
max-width: 100%; | ||
} | ||
|
||
/* further info links */ | ||
|
||
.further-info { | ||
clear: left; | ||
padding: 40px 0; | ||
background: #c13832; | ||
box-shadow: inset 0 3px 2px rgba(0, 0, 0, 0.5), | ||
inset 0 -3px 2px rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.further-info a { | ||
width: 25%; | ||
display: block; | ||
float: left; | ||
} | ||
|
||
.further-info img { | ||
max-width: 100%; | ||
} | ||
|
||
.clearfix { | ||
clear: both; | ||
} | ||
|
||
/* Red panda image */ | ||
|
||
.red-panda img { | ||
display: block; | ||
max-width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters