footer with css and divs

  • olm75
  • Proficient
  • Proficient
  • olm75
  • Posts: 294

Post 3+ Months Ago

i am trying to have my footer stay at the bottom of the page or browser...
here is my css and the url to one of the sites page...
http://nightspotz.com/Zippfinder/contactus.php

Code: [ Select ]
@charset "utf-8";
/* CSS Document */
<style type="text/css" media="all">

/* This rule resets a core set of elements so that they will appear consistent across browsers. Without this rule, content styled with an h1 tag, for example, would appear in different places in Firefox and Internet Explorer because each browser has a different top margin default value. By resetting these values to 0, the elements will initially be rendered in an identical fashion and their properties can be easily defined by the designer in any subsequent rule. */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
}
/* The body is the outermost layout component and contains the visible page content. Setting properties for the body element will help to create consistent styling of the page content and more manageable CSS. Besides using the body element to set global properties, it is common to use the body element to set the background color of the page and create a centered container for the page content to display. */
body {
color: #000;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
line-height: 14px;
margin: 0 0 0 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
padding: 0 0 0 0; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
text-align: center; /* Centers the page content container in IE 5 browsers. */
}
/* Commonly used to style page titles. */
h1 {
color: #000;
font-size: 14px;
font-weight: bold;
line-height: 14px;
}
/* Commonly used to style section titles. */
h2 {
color: #000;
font-size: 12px;
font-weight: bold;
line-height: 14px;
}
/* Sets the style for unvisited links. */
a, a:link {
    color: #7283a5;
    font-weight: bold;
    text-decoration: none;
}
/* Sets the style for visited links. */
a:visited {
    color: #7283a5;
    font-weight: bold;
    text-decoration: none;
}
/* Sets the style for links on mouseover. */
a:hover {
    color: #FF8216;
    text-decoration: none;
}
/* Sets the style for a link that has focus. */
a:focus {
    color: #7283a5;
    text-decoration: none;
}
/* Sets the style for a link that is being activated/clicked. */
a:active {
    color: #7283a5;
    text-decoration: none;
}
/* This is a container for the page content. It is common to use the container to constrain the width of the page content and allow for browser chrome to avoid the need for horizontal scrolling. For fixed layouts you may specify a container width and use auto for the left and right margin to center the container on the page. IE 5 browser require the use of text-align: center defined by the body element to center the container. For liquid layouts you may simply set the left and right margins to center the container on the page. */
#outerWrapper {
margin: 0 auto 0 auto; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
text-align: left; /* Redefines the text alignment defined by the body element. */
width: 759px;
}
#outerWrapper #header {
    font-size: 18px;
    font-weight: bold;
    height: 190px;
    line-height: 15px;
    padding: 0px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
    background-image: url(/Zippfinder/images/smallHeaderBG.png);
    background-repeat: no-repeat;
    background-position: center bottom;
}
#buyProperty {
    background-image: url(/Zippfinder/images/buyPropertyBox.png);
    background-repeat: no-repeat;
    background-position: top;
    float: right;
    height: 133px;
    width: 190px;
    margin-top: 10px;
    margin-right: -1px;
}
#addProperty {
    background-image: url(/Zippfinder/images/addPropertyBox.png);
    background-repeat: no-repeat;
    background-position: top;
    float: right;
    height: 133px;
    width: 188px;
    margin-top: 10px;
    margin-right: -2px;
}
#advertiseServices {
    background-image: url(/Zippfinder/images/advertiseBox.png);
    background-repeat: no-repeat;
    background-position: top;
    float: right;
    height: 133px;
    width: 192px;
    margin-top: 10px;
}
#outerWrapper #contentWrapper {
    height: 460px;
    clear: both;
}
/* Contains the main page content. When using a mutliple column layout the margins will be set to account for the floated columns' width, margins, and padding. */
#outerWrapper #contentWrapper #content {
    margin: 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
    padding: 0px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
    height: 450px;
    clear: right;
}
#content {
    clear: both;
    height: 650px;
}

#login {
    float: left;
    height: 133px;
    width: 180px;
    margin-top: 10px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    background-image: url(/Zippfinder/images/loginBox.png);
    background-repeat: no-repeat;
    background-position: left top;
}
#outerWrapper #footer {
    height: 70px;
    padding: 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
    clear: right;
}
#becomeInvestor {
    background-image: url(/Zippfinder/images/becomeInvestorBox.png);
    background-repeat: no-repeat;
    background-position: top;
    height: 95px;
    width: 374px;
    margin-top: 15px;
    float: right;
    clear: right;
}
#loanApp {
    background-image: url(/Zippfinder/images/loanAppBox.png);
    background-repeat: no-repeat;
    height: 95px;
    width: 374px;
    float: right;
    margin-top: 15px;
    background-position: top;
    clear: both;
}
#sideMenu {
    position: absolute;
    width: 215px;
    margin-left: -15px;
    float: left;
    clear: none;
    margin-top: 15px;
}
#bodyContents {
    font-size: 12px;
    font-style: normal;
    line-height: normal;
    vertical-align: text-top;
    text-align: left;
    padding-top: 0px;
    padding-right: 15px;
    padding-bottom: 0px;
    padding-left: 15px;
    text-indent: 10px;
    width: 500px;
    float: right;
    margin-top: 15px;
    margin-right: 10px;
    margin-bottom: 0px;
    margin-left: 0px;
    height: 440px;
}

#sideMenu li {
    color: #FF8216;
    font-weight: normal;
    font-size: 14px;
    list-style-type: circle;
    font-style: normal;
    list-style-position: outside;
}
#sideMenuHeader {
    height: 20px;
    font-size: 15px;
    font-weight: bold;
    padding-left: 25px;
    line-height: 30px;
}
#logo {
    background-image: url(/Zippfinder/images/logo.png);
    background-repeat: no-repeat;
    float: left;
    height: 82px;
    width: 67px;
    margin-left: 12px;
    margin-top: 35px;
}
#logoText {
    background-image: url(/Zippfinder/images/logoText.png);
    background-repeat: no-repeat;
    float: left;
    height: 20px;
    width: 154px;
    margin-top: 48px;
    margin-left: 7px;
}
#commercialBox {
    background-image: url(/Zippfinder/images/commercialBox.png);
    background-repeat: no-repeat;
    float: right;
    height: 84px;
    width: 256px;
    margin-top: 17px;
    margin-right: 15px;
}
#residetialBox {
    background-image: url(/Zippfinder/images/residentialBox.png);
    background-repeat: no-repeat;
    height: 84px;
    width: 256px;
    margin-top: 17px;
    margin-left: 140px;
    float: left;
}
.style4 {
    color: #7283a5;
    font-size: 16px;
    font-weight: bold;
}
.style1 {color: #7283a5}
#navBar {
    float: right;
    height: 75px;
    width: 500px;
    font-family: "Times New Roman", Times, serif;
    font-style: normal;
    color: #7283a5;
    font-weight: bold;
    font-size: 12px;
}
.style5 {
    font-size: 15px;
    font-weight: bold;
    font-style: normal;
    color: #FF7F14;
}
.style2 {
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
    color: #FF7F14;
}
.style3 {color: #7283A5}

</style>
<style type="text/css" media="print">

/* It is common to set printer friendly styles such as a white background with black text. */
body {
background-color: #fff;
background-image: none;
border-color: #000; /* Sets the border color properties for an element using shorthand notation */
color: #000;
}
#loanApp {
    background-image: url(/Zippfinder/images/loanAppBox.png);
    background-repeat: no-repeat;
    background-position: top;
    height: 95px;
    width: 374px;
    margin-top: 15px;
    clear: right;
    float: right;
}


</style>
  1. @charset "utf-8";
  2. /* CSS Document */
  3. <style type="text/css" media="all">
  4. /* This rule resets a core set of elements so that they will appear consistent across browsers. Without this rule, content styled with an h1 tag, for example, would appear in different places in Firefox and Internet Explorer because each browser has a different top margin default value. By resetting these values to 0, the elements will initially be rendered in an identical fashion and their properties can be easily defined by the designer in any subsequent rule. */
  5. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
  6. margin: 0;
  7. padding: 0;
  8. border: 0;
  9. outline: 0;
  10. font-size: 100%;
  11. }
  12. /* The body is the outermost layout component and contains the visible page content. Setting properties for the body element will help to create consistent styling of the page content and more manageable CSS. Besides using the body element to set global properties, it is common to use the body element to set the background color of the page and create a centered container for the page content to display. */
  13. body {
  14. color: #000;
  15. font-family: Arial, Helvetica, sans-serif;
  16. font-size: 12px;
  17. line-height: 14px;
  18. margin: 0 0 0 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  19. padding: 0 0 0 0; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  20. text-align: center; /* Centers the page content container in IE 5 browsers. */
  21. }
  22. /* Commonly used to style page titles. */
  23. h1 {
  24. color: #000;
  25. font-size: 14px;
  26. font-weight: bold;
  27. line-height: 14px;
  28. }
  29. /* Commonly used to style section titles. */
  30. h2 {
  31. color: #000;
  32. font-size: 12px;
  33. font-weight: bold;
  34. line-height: 14px;
  35. }
  36. /* Sets the style for unvisited links. */
  37. a, a:link {
  38.     color: #7283a5;
  39.     font-weight: bold;
  40.     text-decoration: none;
  41. }
  42. /* Sets the style for visited links. */
  43. a:visited {
  44.     color: #7283a5;
  45.     font-weight: bold;
  46.     text-decoration: none;
  47. }
  48. /* Sets the style for links on mouseover. */
  49. a:hover {
  50.     color: #FF8216;
  51.     text-decoration: none;
  52. }
  53. /* Sets the style for a link that has focus. */
  54. a:focus {
  55.     color: #7283a5;
  56.     text-decoration: none;
  57. }
  58. /* Sets the style for a link that is being activated/clicked. */
  59. a:active {
  60.     color: #7283a5;
  61.     text-decoration: none;
  62. }
  63. /* This is a container for the page content. It is common to use the container to constrain the width of the page content and allow for browser chrome to avoid the need for horizontal scrolling. For fixed layouts you may specify a container width and use auto for the left and right margin to center the container on the page. IE 5 browser require the use of text-align: center defined by the body element to center the container. For liquid layouts you may simply set the left and right margins to center the container on the page. */
  64. #outerWrapper {
  65. margin: 0 auto 0 auto; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  66. text-align: left; /* Redefines the text alignment defined by the body element. */
  67. width: 759px;
  68. }
  69. #outerWrapper #header {
  70.     font-size: 18px;
  71.     font-weight: bold;
  72.     height: 190px;
  73.     line-height: 15px;
  74.     padding: 0px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  75.     background-image: url(/Zippfinder/images/smallHeaderBG.png);
  76.     background-repeat: no-repeat;
  77.     background-position: center bottom;
  78. }
  79. #buyProperty {
  80.     background-image: url(/Zippfinder/images/buyPropertyBox.png);
  81.     background-repeat: no-repeat;
  82.     background-position: top;
  83.     float: right;
  84.     height: 133px;
  85.     width: 190px;
  86.     margin-top: 10px;
  87.     margin-right: -1px;
  88. }
  89. #addProperty {
  90.     background-image: url(/Zippfinder/images/addPropertyBox.png);
  91.     background-repeat: no-repeat;
  92.     background-position: top;
  93.     float: right;
  94.     height: 133px;
  95.     width: 188px;
  96.     margin-top: 10px;
  97.     margin-right: -2px;
  98. }
  99. #advertiseServices {
  100.     background-image: url(/Zippfinder/images/advertiseBox.png);
  101.     background-repeat: no-repeat;
  102.     background-position: top;
  103.     float: right;
  104.     height: 133px;
  105.     width: 192px;
  106.     margin-top: 10px;
  107. }
  108. #outerWrapper #contentWrapper {
  109.     height: 460px;
  110.     clear: both;
  111. }
  112. /* Contains the main page content. When using a mutliple column layout the margins will be set to account for the floated columns' width, margins, and padding. */
  113. #outerWrapper #contentWrapper #content {
  114.     margin: 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  115.     padding: 0px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  116.     height: 450px;
  117.     clear: right;
  118. }
  119. #content {
  120.     clear: both;
  121.     height: 650px;
  122. }
  123. #login {
  124.     float: left;
  125.     height: 133px;
  126.     width: 180px;
  127.     margin-top: 10px;
  128.     margin-right: 0px;
  129.     margin-bottom: 0px;
  130.     margin-left: 0px;
  131.     background-image: url(/Zippfinder/images/loginBox.png);
  132.     background-repeat: no-repeat;
  133.     background-position: left top;
  134. }
  135. #outerWrapper #footer {
  136.     height: 70px;
  137.     padding: 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  138.     clear: right;
  139. }
  140. #becomeInvestor {
  141.     background-image: url(/Zippfinder/images/becomeInvestorBox.png);
  142.     background-repeat: no-repeat;
  143.     background-position: top;
  144.     height: 95px;
  145.     width: 374px;
  146.     margin-top: 15px;
  147.     float: right;
  148.     clear: right;
  149. }
  150. #loanApp {
  151.     background-image: url(/Zippfinder/images/loanAppBox.png);
  152.     background-repeat: no-repeat;
  153.     height: 95px;
  154.     width: 374px;
  155.     float: right;
  156.     margin-top: 15px;
  157.     background-position: top;
  158.     clear: both;
  159. }
  160. #sideMenu {
  161.     position: absolute;
  162.     width: 215px;
  163.     margin-left: -15px;
  164.     float: left;
  165.     clear: none;
  166.     margin-top: 15px;
  167. }
  168. #bodyContents {
  169.     font-size: 12px;
  170.     font-style: normal;
  171.     line-height: normal;
  172.     vertical-align: text-top;
  173.     text-align: left;
  174.     padding-top: 0px;
  175.     padding-right: 15px;
  176.     padding-bottom: 0px;
  177.     padding-left: 15px;
  178.     text-indent: 10px;
  179.     width: 500px;
  180.     float: right;
  181.     margin-top: 15px;
  182.     margin-right: 10px;
  183.     margin-bottom: 0px;
  184.     margin-left: 0px;
  185.     height: 440px;
  186. }
  187. #sideMenu li {
  188.     color: #FF8216;
  189.     font-weight: normal;
  190.     font-size: 14px;
  191.     list-style-type: circle;
  192.     font-style: normal;
  193.     list-style-position: outside;
  194. }
  195. #sideMenuHeader {
  196.     height: 20px;
  197.     font-size: 15px;
  198.     font-weight: bold;
  199.     padding-left: 25px;
  200.     line-height: 30px;
  201. }
  202. #logo {
  203.     background-image: url(/Zippfinder/images/logo.png);
  204.     background-repeat: no-repeat;
  205.     float: left;
  206.     height: 82px;
  207.     width: 67px;
  208.     margin-left: 12px;
  209.     margin-top: 35px;
  210. }
  211. #logoText {
  212.     background-image: url(/Zippfinder/images/logoText.png);
  213.     background-repeat: no-repeat;
  214.     float: left;
  215.     height: 20px;
  216.     width: 154px;
  217.     margin-top: 48px;
  218.     margin-left: 7px;
  219. }
  220. #commercialBox {
  221.     background-image: url(/Zippfinder/images/commercialBox.png);
  222.     background-repeat: no-repeat;
  223.     float: right;
  224.     height: 84px;
  225.     width: 256px;
  226.     margin-top: 17px;
  227.     margin-right: 15px;
  228. }
  229. #residetialBox {
  230.     background-image: url(/Zippfinder/images/residentialBox.png);
  231.     background-repeat: no-repeat;
  232.     height: 84px;
  233.     width: 256px;
  234.     margin-top: 17px;
  235.     margin-left: 140px;
  236.     float: left;
  237. }
  238. .style4 {
  239.     color: #7283a5;
  240.     font-size: 16px;
  241.     font-weight: bold;
  242. }
  243. .style1 {color: #7283a5}
  244. #navBar {
  245.     float: right;
  246.     height: 75px;
  247.     width: 500px;
  248.     font-family: "Times New Roman", Times, serif;
  249.     font-style: normal;
  250.     color: #7283a5;
  251.     font-weight: bold;
  252.     font-size: 12px;
  253. }
  254. .style5 {
  255.     font-size: 15px;
  256.     font-weight: bold;
  257.     font-style: normal;
  258.     color: #FF7F14;
  259. }
  260. .style2 {
  261.     font-size: 12px;
  262.     font-weight: normal;
  263.     font-style: normal;
  264.     color: #FF7F14;
  265. }
  266. .style3 {color: #7283A5}
  267. </style>
  268. <style type="text/css" media="print">
  269. /* It is common to set printer friendly styles such as a white background with black text. */
  270. body {
  271. background-color: #fff;
  272. background-image: none;
  273. border-color: #000; /* Sets the border color properties for an element using shorthand notation */
  274. color: #000;
  275. }
  276. #loanApp {
  277.     background-image: url(/Zippfinder/images/loanAppBox.png);
  278.     background-repeat: no-repeat;
  279.     background-position: top;
  280.     height: 95px;
  281.     width: 374px;
  282.     margin-top: 15px;
  283.     clear: right;
  284.     float: right;
  285. }
  286. </style>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Try clear: both;.
  • olm75
  • Proficient
  • Proficient
  • olm75
  • Posts: 294

Post 3+ Months Ago

im sorry to be ignorant but i tried that, were do i put it....when i tried it didnt work
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

You put it in the CSS which defines the footer class/id. Such as...

Code: [ Select ]
#footer {
clear: both;
}
  1. #footer {
  2. clear: both;
  3. }


But if you tried that for the footer and it didn't work than I don't know... make a top margin or something... clear: both; for the footer works just fine and dandy with me...
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

I think there's a problem with floating #sideMenu to the left and #bodyContents to the right. You really shouldn't have a height for #bodyContents either.
  • Benat
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2123

Post 3+ Months Ago

Quick Fix...

Change the bodycontents CSS to this.

Code: [ Select ]
#bodyContents {
    font-size: 12px;
    font-style: normal;
    line-height: normal;
    vertical-align: text-top;
    text-align: left;
    padding; 15px 0 15px 0;
    text-indent: 10px;
    width: 500px;
    float: right;
    margin: 0 15px 0 10px;
    height: 500px;
}
  1. #bodyContents {
  2.     font-size: 12px;
  3.     font-style: normal;
  4.     line-height: normal;
  5.     vertical-align: text-top;
  6.     text-align: left;
  7.     padding; 15px 0 15px 0;
  8.     text-indent: 10px;
  9.     width: 500px;
  10.     float: right;
  11.     margin: 0 15px 0 10px;
  12.     height: 500px;
  13. }


But dM is right.
  • olm75
  • Proficient
  • Proficient
  • olm75
  • Posts: 294

Post 3+ Months Ago

ok will the footer move down will more in is entered in the body
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

If the page is setup correctly, it will.
  • olm75
  • Proficient
  • Proficient
  • olm75
  • Posts: 294

Post 3+ Months Ago

can u go to the url i put there and see if its set up correctly please thaanks
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

You need to remove the height definition from the #bodyContents selector.

You're still using a float:left/float:right strategy. I haven't tried this in a while, but I instinctually think this is a poor strategy.

My advice is to float both columns to the left.
  • olm75
  • Proficient
  • Proficient
  • olm75
  • Posts: 294

Post 3+ Months Ago

do you have a solution for IE because the footer stays at the bottom of all the browsers except IE

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 70 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.