File tree Expand file tree Collapse file tree 4 files changed +18
-15
lines changed Expand file tree Collapse file tree 4 files changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -118,22 +118,25 @@ nav a {
118
118
-----------------------------------------*/
119
119
footer {
120
120
clear : both;
121
+ padding : 5px ;
122
+ }
123
+ footer p {
124
+ margin : 0 ; /* removes default margin */
121
125
}
122
-
123
126
/* sticky footer */
124
127
html , body {
125
128
height : 100% ;
126
129
}
127
130
.page-wrap {
128
131
min-height : 100% ;
129
- margin-bottom : -35px ; /* equal to footer height */
132
+ margin-bottom : -35px ; /* must be the same height as footer */
130
133
}
131
134
.page-wrap : after {
132
135
content : "" ;
133
136
display : block;
134
137
}
135
138
footer , .page-wrap : after {
136
- height : 35px ; /* must be the same height as footer */
139
+ height : 35px ; /* However tall you want the footer to be. */
137
140
}
138
141
footer {
139
142
background : # 222 ;
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 ">
5
5
< title > Jane Smith | About Me</ title >
6
6
< link href ='http://fonts.googleapis.com/css?family=Nixie+One|Open+Sans:300|Pacifico ' rel ='stylesheet ' type ='text/css '>
7
- < link rel ="stylesheet " href ="css/exercise8 .css ">
7
+ < link rel ="stylesheet " href ="css/sticky-footer .css ">
8
8
</ head >
9
9
< body >
10
10
@@ -15,9 +15,9 @@ <h2>Web Developer + City Girl</h2>
15
15
16
16
< nav >
17
17
< ul >
18
- < li > < a href ="exercise8 -home.html "> Home</ a > </ li >
19
- < li > < a href ="exercise8 -about.html "> About</ a > </ li >
20
- < li > < a href ="exercise8 -contact.html "> Contact</ a > </ li >
18
+ < li > < a href ="sticky-footer -home.html "> Home</ a > </ li >
19
+ < li > < a href ="sticky-footer -about.html "> About</ a > </ li >
20
+ < li > < a href ="sticky-footer -contact.html "> Contact</ a > </ li >
21
21
</ ul >
22
22
</ nav >
23
23
</ header >
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 ">
5
5
< title > Jane Smith | Contact Me</ title >
6
6
< link href ='http://fonts.googleapis.com/css?family=Nixie+One|Open+Sans:300|Pacifico ' rel ='stylesheet ' type ='text/css '>
7
- < link rel ="stylesheet " href ="css/exercise8 .css ">
7
+ < link rel ="stylesheet " href ="css/sticky-footer .css ">
8
8
</ head >
9
9
< body >
10
10
@@ -15,9 +15,9 @@ <h2>Web Developer + City Girl</h2>
15
15
16
16
< nav >
17
17
< ul >
18
- < li > < a href ="exercise8 -home.html "> Home</ a > </ li >
19
- < li > < a href ="exercise8 -about.html "> About</ a > </ li >
20
- < li > < a href ="exercise8 -contact.html "> Contact</ a > </ li >
18
+ < li > < a href ="sticky-footer -home.html "> Home</ a > </ li >
19
+ < li > < a href ="sticky-footer -about.html "> About</ a > </ li >
20
+ < li > < a href ="sticky-footer -contact.html "> Contact</ a > </ li >
21
21
</ ul >
22
22
</ nav >
23
23
</ header >
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 ">
5
5
< title > Jane Smith</ title >
6
6
< link href ='http://fonts.googleapis.com/css?family=Nixie+One|Open+Sans:300|Pacifico ' rel ='stylesheet ' type ='text/css '>
7
- < link rel ="stylesheet " href ="css/exercise8 .css ">
7
+ < link rel ="stylesheet " href ="css/sticky-footer .css ">
8
8
</ head >
9
9
< body class ="home ">
10
10
11
11
< div class ="page-wrap ">
12
12
< nav >
13
13
< ul >
14
- < li > < a href ="exercise8 -home.html "> Home</ a > </ li >
15
- < li > < a href ="exercise8 -about.html "> About</ a > </ li >
16
- < li > < a href ="exercise8 -contact.html "> Contact</ a > </ li >
14
+ < li > < a href ="sticky-footer -home.html "> Home</ a > </ li >
15
+ < li > < a href ="sticky-footer -about.html "> About</ a > </ li >
16
+ < li > < a href ="sticky-footer -contact.html "> Contact</ a > </ li >
17
17
</ ul >
18
18
</ nav >
19
19
You can’t perform that action at this time.
0 commit comments