HTML - Stop Footer Moving About [was 'footer!!!']
....I had enough! My footer is all over the place! Why can't it just move down when the text becomes longer! I am just using <div>. My header, the nav bar and the right side bar are fixed and I want the footer to just fit in underneath. Anybody got some code which solves that problem?
Chris PHP Code: <?php echo "<div class='mainarea'>"; include ("includes/header.inc"); include ("includes/navigation.inc"); if ($var == 'service' or $var == 'consultancy') { echo "<div class='textarea_services'><p><br /></p>"; include ("text.php"); echo "</div>"; } else { echo "<div class='textarea'><p><br /></p>"; include ("text.php"); echo "</div>"; } if ($var != 'service' and $var != 'consultancy'){include ("includes/rightside.inc");} if ($var != 'privacy'){include ("includes/footer.inc");} echo "</div>"; ?> Similar TutorialsI'm not sure whether this is a CSS problem or Html but I'm gonna post it here any way. My footer moves up on my photos pages. I put the footer php file in the exact place I put it on the home page. I don't get why it moves up on my photo page though. Here is the link http://www.wizardsbuzz.com/photos even though I used clearInterval, it still move forever? why? How can I stop it? Code: var count = 10; function run() { x = window.setInterval("MoveRight()",10); } function MoveRight() { count += 5; document.getElementById("p2").style.left = count; <!--p2 is a index of a pragraph--> if (document.getElementById("p2").style.left == 400) { clearInterval(x); } } Thanks! Hi, I'm new to this forum. I am a design, not a coder by any means. But I was wondering if anyone knew how to do this. http://www.knoed.com/index.php The gray div box and the main nav at the top of the page stay aligned with the right side of the page even when you resize the window. But when the box or nav reach an area like the logo when resizing, it stops and the window covers over the box. Try it and you will see what I mean. Does anyone know how to achieve this? Right now I have my boxes attached to the right side but they just go underneath my elements when they resize the window. Thank you. This is the website I'm working on: http://glacurh.nacurh.org/GLACURH2011/ I cannot, for the life of me, get a footer put below everything with a thin, solid border on it with text aligned in the middle. The footer width, including the border, should be 800x40. The background color should be #FABF8F. Please help! I don't know what I'm doing wrong! You all rock! The footer on my webpage stays with the bottom of the window - now when I make the window smaller, the footer moves with the window and then stays there, when I scroll down, the footer stays in the middle of the text. WHAT'S WRONG? Please have a look: http://www.stainless-expert.com/new/index.php Thanks Chris I couldn't find my footer anywhere on my page, when I copied a footer from another page of mine, it put the footer in the wrong place and I can't get it to go back to being a footer instead of part of the content box. Please help! Hi, im trying to create a footer that sticks to the bottom of my page and stays there. Please help, im sorta new with this, html/css stuff, I have tried many of the codes that i have searched on google. Any other ways? Please tell me. Thanks Ok I just deleted about 100 links off of this page: http://lmiinc.com/LMIinc_Links.html And now as you can see there is some extra space. What do I have to do in order to make it look "normal"? Thanks. Hello all, I'm hoping someone can help me with what should be a super simple thing, but I'm not sure if I've just been staring at this code too long or what. Basically all I am trying to do is center my footer on the page, but it seems glued to the left side. I've tried putting in <div align="center" within my HTML, and auto values for my margins in CSS, but neither seem to do the trick. Can anyone help me out? Related markup is below: <div id="footer" align="center"> <div class="container"> <div class="leftFooter"> <ul class="footerNavMain top"> <li class="first"><a href=" ">Products</a></li> <li> | </li> <li><a href=" ">FAQ</a></li> <li> | </li> <li class="last"><a href=" ">Where To Find Us</a></li> </ul> <ul class="footerNavMain bottom"> <li class="first">Phone Number</li> <li> | </li> <li class="last"><a href=" ">Email Link</a></li> </ul> <div class="copyright"> <sup>©</sup> 2011 Copyright™, All Rights Reserved. </div><!-- copyright close div --> </div> <!-- left footer close div --> </div><!-- container close div --> </div> CSS #footer { background: url("/Assets/footer2.jpg") no-repeat scroll 0 0; display: block; float: left; height: 75px; width: 900px; margin-left: auto; margin-right: auto; } #footer .container { height: 75px; margin-left: auto; margin-right: auto; padding-right: 45px; padding-top: 3px; width: 900px; } #footer .leftFooter { background: none repeat scroll 0 0; color: #FFFFFF; display: block; float: left; height: 100%; margin-left: 5 px; overflow: hidden; position: relative; width: 900px; } #footer .rightFooter { background: none repeat scroll 0 0 #4E4E4E; color: #FFFFFF; display: block; float: right; height: 100%; margin-left: 15 px; position: relative; width: 355px; } #footer .copyright { display: block; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; height: 15px; left: 0; line-height: 13px; position: absolute; text-align: center; top: 50px; width: 900px; z-index: 1; font-weight: 700; } #footer a:link{ color: #FFFFFF; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; } #footer a:visited { color: #FFFFFF; text-decoration: none; font-size: 11px; } #footer a:hover{ color: #000000; text-decoration: underline; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; } #footer ul.footerNavMain { display: block; float: left; margin-top: 5px; width: 900px; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } #footer ul.footerNavMain.top { margin-left: 185px; width: 900px; } #footer ul.footerNavMain.bottom { margin-left: 145px; width: 900px; color: #000000; } #footer .footernavMain li { display: block; float: left; padding-left: 4px; padding-right: 4px; } #footernav li a:link { color: #FFFFFF; text-decoration: none; font-size: 11px; } #footernav li a:visited { color: #FFFFFF; text-decoration: none; font-size: 11px; } #footernav li a:active { color: #000000; text-decoration: underline; font-size: 11px; } #header nav li.last, #footerNavMain li.last { padding right: 0; } #footer .footerNavMain li.first { background: none repeat scroll 0 0 transparent; padding-left:0; } Hello, I've been trying to get a footer bar at the fixed bottom position. So far, it seems to work in FF, IE and I also checked in the new Google Chrome browser. However, in IE something strange happens: when a menu in the navigation gets expanded, the footer shifts over the width of the navigation div to the right. You can see the site and the problem at this test page. When you go over "hoofdstukken" in the menu, the footer div moves to the right - at least in my IE7. Any ideas what could cause this - and how to solve it? Thanks in advance. Kind regards, Tom Hello, I'm not a web designer in any sense, but I'm doing this website for a friend. However, I can't figure out how to set the footer to the position I need it to be in. I need the white text to appear on the blue bar that goes across the bottom of the page. But the footer keeps starting at the bottom of the page and it's just getting to the point where I've spent way too many hours trying to figure it out and it's making me pretty mad. Here's the page I'm specifically talking about: http://dianarusselldesign.com/bbb.html I'm using Dreamweaver 8 because I'm poor, and again, NOT a web designer. Here's a screencap of what the css and dreamweaver set ups look like. http://i367.photobucket.com/albums/oo120/meepum/css.jpg http://i367.photobucket.com/albums/oo120/meepum/bbb.jpg PLEASE HELP! Thank you! Hello, So I posted a while ago that I'm having issues with the footer on a website I'm making for a friend. Here's a jpg of how it looks now: http://i367.photobucket.com/albums/o...epum/weird.jpg So I really really need the footer to be RIGHT UNDER the sidebar. I can find all kinds of tutorials online about making the footer "sticky" to the bottom of the page, but nothing about making it start at an exact location. The sidebar ends at 519px and I want the footer to start at 525px. I've tried putting that into the position property, but in dreamweaver it just shows up crossed out. Does anyone have any input? I'm getting so frustrated and angry that I can't fix this. It's driving me nuts. Thank you for any help!!! I'm trying to add some buttons at the end of every post and this is the code I was given:
Code: <a expr:href='"http://www.yardbarker.com/author/new?pUrl=" + data:post.url + "&pHead=" + data:post.title' target='_blank'><img src='http://www.yardbarker.com/images/extern/bark_wide.gif' style='border: 0; padding: 0 0 0 15; vertical-align: bottom;'/></a> <a expr:href='"http://ballhype.com/post/url/?url=" + data:post.url + "&title=" + data:post.title'><img alt='BallHype: hype it up!' height='22' src='http://images.ballhype.com/img/hype/button_96x22.png' width='96'/></a> I tried to paste that in after the line: " <div class='post-footer-line post-footer-line-3'/>" but it keeps showing me an error. I'm using a blogger blog by the way. Thanks for any help you can give. I forgot to mention the site is http://notqualifiedtocomment.blogspot.com/ I'll having issue on my page, I want to insert a footer for the copyright of this page but I cannot figure out what or how could I insert a footer to my css code and html code. Code: body { margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; font-family: Arial, Helvetica, sans-serif; background: #FFFAFA; } a:link { color: #1C1C1C; text-decoration: none; } /* unvisited link */ a:visited { color: #1C1C1C; text-decoration: none; } /* visited link */ a:hover {color: #0099CC} /* mouse over link */ a:active {color: #0099CC} /* selected link */ .seperators {color: white}/* Navigation selector */ #nav { color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: small; } #nav a:link { color: #FFFFFF; text-decoration: none; } /* unvisited link */ #nav a:visited { color: #FFFFFF; text-decoration: none; } /* visited link */ #nav a:hover {color: #0099CC} /* mouse over link */ #nav a:active {color: #0099CC} /* selected link */ /* menu*/ /* left column */ #left { position: absolute; left: 15px; top: 160px; width: 200px; background: #F5F5F5; border-bottom: 0.5pt solid RGB(0,0,0); border-right: 0.5pt solid #D3D3D3; } #left .searchengine { width: 180px; margin: 10px; background: #DCDCDC; padding-bottom: 4px; padding-top: 4px; border-bottom: 0.5pt solid RGB(0,0,0); } #left img {width: 180px; margin: 10px;} #left .leftbox {width: 180px; margin: 10px;} #left .leftbox .leftheaderbox { background: url('../images/Header.gif') #E2E2E2; background-repeat: no-repeat; height: 30px; font-size: 14px; font-weight: bold; border-bottom: 0.5pt solid RGB(0,0,0); } #left .leftbox .leftheaderbox span { top: 7px; left: 6px; position: relative; color: #F0F8FF; } #left .leftbox .leftheaderlist { background: url('../images/headerlist.gif') #E2E2E2; background-repeat: no-repeat; height: 25px; font-size: 12px; font-weight: bold; border-bottom: 0.5pt solid RGB(0,0,0); } #left .leftbox .leftheaderlist span { top: 7px; left: 7px; position: relative; color: #F0F8FF; } #left .leftbox .leftboxlist{ border-top: 1px outset; font-size: 10px; background: #E2E2E2; background-repeat: no-repeat; background-position: 5px; padding-left: 18px; padding-top: 4px; height: 18px; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: 0.5pt solid RGB(0,0,0); } /* middle column */ #center { position: absolute; top: 155px; width: 543px; margin-left: 230px; margin-right: 230px; background: #F5F5F5; border-bottom: 0.5pt solid RGB(0,0,0); border-right: 0.5pt solid #C8C8C8 ; } #center .middlenav{ width: 543px; height: 20px; background: #A80000; border-bottom: 1.5pt solid #D2B48C; } #center .middlecontent{ width: 543px; } #center .middlecontent .title{ position: relative; font-size: 12px; font-weight: bold; text-align: left; margin: 5px; background: #D3D3D3; color: #708090; border-top: 1.5pt solid #A80000; border-bottom: 1.5pt solid #A80000; } #center .middlecontent .content{ position: relative; margin: 5px; font-size: 10px; text-align: justify; text-indent: 5px; } /* right column */ #right { position: absolute; right: 15px; top: 160px; width: 200px; background: #F5F5F5; border-bottom: 0.5pt solid RGB(0,0,0); border-right: 0.5pt solid #D3D3D3; } #right .rightbox {width: 180px; margin: 10px;} #right .rightbox .rightheaderbox { background: url('../images/Header.gif') #E2E2E2; background-repeat: no-repeat; height: 30px; font-size: 14px; font-weight: bold; border-bottom: 0.5pt solid RGB(0,0,0); } #right .rightbox .rightheaderbox span { top: 7px; left: 6px; position: relative; color: #F0F8FF; } #right .rightbox .rightheaderlist { background: url('../images/headerlist.gif') #E2E2E2; background-repeat: no-repeat; height: 25px; font-size: 12px; font-weight: bold; border-bottom: 0.5pt solid RGB(0,0,0); } #right .rightbox .rightheaderlist span { top: 7px; left: 7px; position: relative; color: #F0F8FF; } #right .rightbox .rightboxlist{ border-top: 1px outset; font-size: 10px; background: #E2E2E2; background-repeat: no-repeat; background-position: 5px; padding-left: 18px; padding-top: 4px; height: 18px; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: 0.5pt solid RGB(0,0,0); } And here the actual output/page I want the footer to be like as my header just a rectangular, please someOne help me with this. i have a problem in a footer that if the content of the page did not fill the all the page the footer will not be in front of the status bar' but it is not working well on firefox and internet explorer in the same time] so how i can put the footer above the status bar in the pages that not contains alot of data??? to see what i mean plz open this link in internet explorer and firefox th see the difference http://www.graphicano.com/john/index.htm with css: .bodydwn { background-image: url(images/body_dwn.jpg); padding-left: 280px; font-size: 10px; vertical-align: middle; } and http://www.graphicano.com/john/index2.htm with css .bodydwn { background-image: url(images/body_dwn.jpg); padding-left: 280px; font-size: 10px; vertical-align: middle; width: 100%; position: absolute; bottom: 0px; } Hello HTML experts. I need someone's help urgently. I am trying to obtain the header & footer html of my site. I know I'm supposed to go to VIEW SOURCE and whatnot....but then when I get there I get stuck as I do not understand this html stuff........ Please help me...... My site is dishnetworkoffers.net Hello everyone, I posted this in the CSS section, but figured that this is also an HTML issue somewhat as well. I am a web/graphic designer at a company called Executive Travel Link. Our site can be found at http://www.executivetravellink.com. I am having a bit of an issue with an easy fix regarding changing the height of the Footer. We had our site built by another company and the designer whom worked on it is no longer responsible for doing any work for us. We had our SSL Certificate for the site registered with GoDaddy and I am trying put their Trust Seal logo into our Footer by the code provided from them. However, the large height of the Trust Seal is dragging down the other logos that were created in our Footer to the point that you can only see the top halves of the logos. The way that the designer created our Footer was mainly through a CSS file. I am a novice overall at CSS and after a few hours of trying to get it to look right and coming up unsuccessful, I felt it was probably best to see if there was anyone whom could give some advice or assistance with this problem. I will provide the code for the Footer, CSS, and GoDaddy Trust Seal below. Any help that could be given would be much much appreciated! Thank You! Footer Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="he" lang="he"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>Executive Travel Link</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <link href="style.css" type="text/css" rel="stylesheet" /> <meta name="keywords" content="" /> <meta name="description" content="" /> </head> <body> <div class="footer"> <div class="float_left"> <a target="_parent" href="http://www.executivetravellink.com">Home</a> | <a target="_parent"href="http://details.executivetravellink.com/about-us.htm">About Us</a> | <a target="_parent" href="http://www.executivetravellink.com/contact-us.htm">Contact Us</a> | <span class="tel">Call Us: 855-243-5561</span> </div> <div class="float_right"> <img class="cards" src="cards.png" alt="logos" title="logos"/> </div> </div> </body> </html> CSS Code (for the Footer section): .footer{font-family:arial;font-size:12px;color:#5e5e5e;width:980px;height:28px;background:url(footer_bg.jpg) repeat-x;padding:9px 10px 0px 10px;} .footer a{color:#5e5e5e; text-decoration:none;} .footer a:hover{text-decoration:underline;} .cards{vertical-align:middle;margin-left:10px;} .seal{vertical-align:middle;margin-left:10px;} .footer .tel{color:#c00000; font-weight:bold;} GoDaddy Trust Seal Code: <span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=KFHPuTChwFUJEViHL7RyWg1D7LlZ2jhS6pfMSTHd0TOItdQqvI"></script><br/><a style="font-family: arial; font-size: 9px" href="https://www.godaddy.com/ssl/ssl-certificates.aspx" target="_blank">ssl certificates</a></span> So I am creating a website of artwork using a side bar full of thumbnails that open a larger image in an iframe. Unfortunately, the iframe gets rid of my footer. If I comment out the iframe, it works fine, but as soon as the iframe is back, the footer is gone again. The side bar <aside> and the iframe <section> are both floated left and right, respectfully. The footer has the clear:both property in the css sheet, so it should continue to show up, but doesn't. I've tried different heights of the footer to see if it's behind the rest of the page, and it isn't. Another thing I've noticed (not important) is that it makes the background color of the <section> transparent. That doesn't matter since the <section> only holds the iframe anyway. Any help would be appreciated. Hi I'm a little confused about the bottom "application" bar on facebook. It appears to be static, meaning it does not "reset" whenever you visit a new page (if you have a chat session going on, for example). The only way I can see this is coded, is by placing the bar in a div on top of the content in an iframe. The source code is kindda confusing, so I can't really figure this one out. Anybody know if this is in fact the case? Best regards sorenchr |