css3 - footer stuck in middle of page div not filling remain screen -


so i'm updating local circus website , footer not want stay @ bottom of page. don't want fixed bottom of screen rather when scroll bottom of content that's footer should be. i'm trying use div fill remaining space right of buttons semi opaque black background. site should http://sdrv.ms/18njjnw instead looks http://sdrv.ms/17pkpdr. thank in advance.

<body> <div id="body"> <a href="index.html" ><img id="logo" src="images/logo.png" alt="circus logo" /></a> <div id="buttons" > <div  class="opa"><a class="buttons"  href="circus.html"> circus </a></div> <div id="currentpage" class="opa"> <a class="buttons" href="tickets.html"> tickets </a></div> <div  class="opa"><a class="buttons"  href="performers.html"> performers </a></div> <div  class="opa"><a class="buttons"  href="band.html"> circus city band </a></div> <div class="opa"><a class="buttons"  href="festival.html"> circus city festival </a></div> <div  class="opa"><a class="buttons"  href="calendar.html"> calendar </a></div> <div  class="opa"><a class="buttons"  href="about.html"> </a></div> <div  class="opa"><a class="buttons"  href="forms.html"> forms </a></div> </div>   <div id="contentcontain" >  <div id="paragraph">     <h1> order tickets      </h1>      <p>   performance dates <br /> family night:<br />  friday, july 12, 2013 - 7 p.m.<br /> general admission seating - $5.00<br /> tickets go on sale day of show!<br /> <br /> regular performances:<br /> saturday, july 13 - 2 p.m. & 7 p.m. <br /> sunday, july 14 - 3 p.m. <br /> monday - friday, july 15-19 - 7 p.m. <br /> saturday, july 20 - 2 p.m. & 7 p.m. <br /> <br /> order online, @ box office, or calling @ 765.472.3918   rom barn big top, circus has<br /> been part of peru, indiana on 100 years. exp<br />erience walk through peru's circus history @ circus city museum. popular museum, locat<br />ed in circus city center, filled photos,<br /> miniatures, displays, , costumes circus past. museum open monday through friday, a<br />pril through september 9 5 pm , october throu<br />gh march 9 4 pm. during circus week enjoy<br /> many circus wagons displayed outs<br />ide museum extended hours before , after each circus performance. admission <br />donation only. group tours can scheduled<br /> contacting circus office @ 765-472-3918.  monetary , ar<br />tifact donations accepte<br />d , appreciated.    monetary donations se<br />nd check or mon<br />ey order to:  circus city museum c/o circus city fest<br />ival inc. 154 n. broadway peru indiana.  <br /><br /> circus artifacts can al<br />so mailed, delivered, or picked up.   contact circus city fes<br /><br />tivals office @ 765-472-3918 more details.  circus city gift shop<br /> complete “big top” ex<br /><br />perience souvenir our circus city gift shop! memorabilia such post cards, t-shirts, hats, toys, , more <br />available purchase. gift shop located in <br />circus city center , open public monday through friday, <br />april through september 9 5 pm , october through march 9 4 pm.<br /> proceeds used support circus city festivals, inc. <br />and peru amateur youth circus program.       </p>       <div id="ticketsbut" ><a id="order"  href="http://sa1.seatadvisor.com/sabo/servlets/eventsearch?presenter=circuscity">place ticket order  </a></div>     </div>     <div id="content"> </div> </div>     <a href="http://www.firstbankofberne.com/"><img id="bank" src="images/bank.png" /></a> <div id="footer" >  <p id="foottext"> circus city festival, inc.&nbsp; •&nbsp; 154 north broadway&nbsp; •&nbsp;  peru, in 46970 &nbsp;•  &nbsp;(765) 472-3918&nbsp; •&nbsp;  fax:(765) 472-2826 &nbsp;•  &nbsp;info@perucircus.com </p> </div> </div> </body>  </html> </html>  body{ margin:0px; padding:0px; } html{  }   div.sidebar{ background-color:black; width:35%; min-width:430px; filter: alpha(opacity=50); opacity: .5; }  #body{ position:relative; min-height:100%; min-width:100% }  #foottext{  }   #contentcontain{ position:absolute; top:0px; left:430px;  height:auto; z-index:1000; color:white; }  #content{ position:absolute; top:0px; left:0px; width:100%; background-color:black; filter: alpha(opacity=50); opacity: .5;  height:100%; z-index:-1;  } #paragraph{ text-align:center; }  #sidebarcontainer{ height:100%; }  #logo{ width:420px; z-index:1000; }  #footer{ background-color:black; width:100%; height:35px; position:absolute; bottom:0px; left:0px; text-align:center; color: white; z-index:1000; }  a.buttons{ display:block; text-decoration:none; color:white; height:35px; line-height:35px; text-align:center; font-family: lucida bright; vertical-align:middle; } #currentpage{ background-color:black; filter: alpha(opacity=50); opacity: .5; } #currentpage:hover{ filter: alpha(opacity=100); opacity: 100; }  a.buttons:hover{ background-color:black; filter: alpha(opacity=100); opacity: 100; }  #buttons{ width:430px; }  #bank{ position:absolute; left:0px; bottom:35px; } 

absolute position takes position relative containing div. looks taking window. if put position:relative in container div.

you can position:fixed has limited browser support.

regardless, want have footer positioned inline (the natural state of divs) pull out.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -