vtrippy
Paywall Strategist
LEVEL 1
300 XP
Introduction:
This tutorial will be a code sample of a footer in CSS.
Steps of Creation:
Step 1:
First we need a HTML file to contain our footer. I have created one with a couple of divs and a link to my theme.css CSS file.
Visit us at http://www.sourcecodester.com.
Step 2:
Now lets set the default settings for our html file in our theme.css.
Step 3:
Next I have set a height for my fake div so it shows up properly...
For our footer we have set it fixed to the bottom of the screen with a 80px height, 100% width and a slightly different colour to our main background to differentiate it. I have also given my footerContent a border on the left and right sides and given it a slightly smaller width.
Project Complete!
Below is the full source and download to the files.
Visit us at http://www.sourcecodester.com.
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Download
This tutorial will be a code sample of a footer in CSS.
Steps of Creation:
Step 1:
First we need a HTML file to contain our footer. I have created one with a couple of divs and a link to my theme.css CSS file.
Visit us at http://www.sourcecodester.com.
Step 2:
Now lets set the default settings for our html file in our theme.css.
- *
{
- margin
:
0px
;
- padding
:
0px
;
- color
:
#fff
;
- }
- body{
- width
:
100%
;
- }
Step 3:
Next I have set a height for my fake div so it shows up properly...
- .contentFake{
- background-color
:
#333
;
- height
:
770px
;
- }
- .footer{
- width
:
100%
;
- position
:
fixed
;
- margin-bottom
:
0px
;
- height
:
80px
;
- background-color
:
#1A1A1A
;
- display
:
block
;
- }
- .footerContent{
- width
:
80%
;
- margin
:
auto
;
- padding
:
5px
;
- text-align
:
center
;
- border-left
:
1px
solid
#fff
;
- border-right
:
1px
solid
#fff
;
- }
For our footer we have set it fixed to the bottom of the screen with a 80px height, 100% width and a slightly different colour to our main background to differentiate it. I have also given my footerContent a border on the left and right sides and given it a slightly smaller width.
Project Complete!
Below is the full source and download to the files.
Visit us at http://www.sourcecodester.com.
- *
{
- margin
:
0px
;
- padding
:
0px
;
- color
:
#fff
;
- }
- body{
- width
:
100%
;
- }
- .contentFake{
- background-color
:
#333
;
- height
:
770px
;
- }
- .footer{
- width
:
100%
;
- position
:
fixed
;
- margin-bottom
:
0px
;
- height
:
80px
;
- background-color
:
#1A1A1A
;
- display
:
block
;
- }
- .footerContent{
- width
:
80%
;
- margin
:
auto
;
- padding
:
5px
;
- text-align
:
center
;
- border-left
:
1px
solid
#fff
;
- border-right
:
1px
solid
#fff
;
- }
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Download
You must upgrade your account or reply in the thread to view the hidden content.