Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. stick footer at the bottom of the page

stick footer at the bottom of the page

Scheduled Pinned Locked Moved Web Development
csshtmlsysadmindockerhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhavna4321
    wrote on last edited by
    #1

    i am   able to   stick footer at the bottom of the page in IE . But in firefox and safari i am not able to do. The matter does not overlap but it comes up when the matter is less. So it is not sticking to the bottom.Can anyone please help me this. Here is the code. <body><form id="formMasterPage" runat="server"> <div id="container"> <div id="content"> <div id="header"</div> <div id="body"></div> </div></div> <div id="footer"></div></form> the css is... html,body             {                   margin: 0;                   padding: 0;                   height: 100%;             }             #header             {                   padding-left: 7px;                   padding-right: 7px;                   padding-top: 7px;             }             #body             {margin: 0;                   height: 98%;                   padding-left: 10px;                   padding-right: 10px;                   padding-bottom: 20px; /* Height of the footer */             }             #footer             {                   margin-top:-20px;                   position: relative;                   bottom: 0;                   width: 100%;          &nbs

    G 1 Reply Last reply
    0
    • B bhavna4321

      i am   able to   stick footer at the bottom of the page in IE . But in firefox and safari i am not able to do. The matter does not overlap but it comes up when the matter is less. So it is not sticking to the bottom.Can anyone please help me this. Here is the code. <body><form id="formMasterPage" runat="server"> <div id="container"> <div id="content"> <div id="header"</div> <div id="body"></div> </div></div> <div id="footer"></div></form> the css is... html,body             {                   margin: 0;                   padding: 0;                   height: 100%;             }             #header             {                   padding-left: 7px;                   padding-right: 7px;                   padding-top: 7px;             }             #body             {margin: 0;                   height: 98%;                   padding-left: 10px;                   padding-right: 10px;                   padding-bottom: 20px; /* Height of the footer */             }             #footer             {                   margin-top:-20px;                   position: relative;                   bottom: 0;                   width: 100%;          &nbs

      G Offline
      G Offline
      Gayani Devapriya
      wrote on last edited by
      #2

      Hi bhavna4321, Please note that the tag <div id="header"</div> misses the closing tag. Hope it helps, Gayani

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups