HTML - How To Use A Header And A Footer With Your Web Pages?
I have a number of webpages that I want to have the same footer I think I have that working correctly but I also tried to give them all the same header and they are really messed up now.
My css style sheet is not connecting to my page do you have any idea why? If you can tell me how to fix it that would really help me out to. Thanks Snot www.tarantuladatabase.com p.s. I am only looking at the index page. I know the rest are broken Similar TutorialsHello 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 So we got 3 columns with a header. I tried to put a footer underneath it all, but until now... no result. Anyone who can help me out? HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>driekleur pagina</title> <style type="text/css"> html,body { margin:0; padding:0; height:100%; } #header{ position:absolute; top:0; left:0; width:100%; height:15%; background-color:#222222; } #linkerkolom { width:15%; height:100%; float:left; background-color:#776644; } #middelste_kolom { width:70%; height:100%; float:left; background-color:#fff; } #rechterkolom { width:15%; height:100%; float:left; background-color:#776644; } #footer { background-color:#f9ffff; position:absolute; border:solid 1px #CCCCCC; border-bottom:0px; border-left:0px; border-right:0px; bottom:0; left:0; width:100%; height:22px; } </style> </head> <body> <div id="header"></div> <div id="linkerkolom"></div> <div id="middelste_kolom"></div> <div id="rechterkolom"></div> <div id="footer"></div> </body> </html> HI I have a .htm file in which i dynmically insert the data. Now wht i want that i want to put header and footer in each print page of thta html file , dynmically thoroght VB.NET Code. The header and footer can contail , the company logo, Title of page and so on. can u big boss please tell me how can i do this. Thanks Ok, so basically, I have a website with a lot of pages. I have made a top menu bar, which goes on every page, and a copywrite notice for the bottom. I was wondering if its possible to maybe put those in some kind of external file, which will make them appear on every page, like a CSS file, so I don't have to paste that onto every page. The reason I asked, is because sometimes the menu is gonna change and I don't want to have to edit EVERY page of my site just for that. And if it does work, could someone tell me how to do it? I tried <header> </header> and <footer></footer> in a CSS but they didn't appear on my page, and yes, the page calls the CSS file correctly, because the styles still load up. Any help would be GREATLY appreciated!!! Hi all, How would you go about setting up your header and footer so that if you need to make a change it would apply to all of your sites without having to manually go through and change the html on each individual one. I haven't made web sites in over a decade, and I am afraid using frames is quite out of date =). Thanks, Ryan Hello. First time here asking for help. Hope there's a solution! The site in question is http://www.jason-bradbury.com/Design.html. It's my first attempt at web design and I'm stumped. The goal is to present my art portfolio in a horizontal scrolling layout with a fixed header and footer. Ideally it would look identical across the many browser platforms. On a Windows laptop, my page looks and functions as it should in the latest browser versions of Safari, Google Chrome and Firefox as long as there aren't a stack of toolbars enabled. If toolbars are present (mostly in Firefox), the footer gets truncated and the page will not vertical scroll to allow it to be seen. So my first problem is getting the vertical scrolling (for the entire page including header and footer) to appear only when necessary in that situation. On my Mac Pro (I have not been able to test a Macbook yet) the page appears normal across the board with Safari and Firefox (have not tested Chrome or IE) The second problem is that in all versions of IE (and older versions of Firefox prior to 4.0) the page is displayed incorrectly. In IE, the header is missing, the left margin is way off and a vertical scrollbar is present for the body (again, if the vertical scrolling was for the entire page it wouldn't be so bad). As for the horizontal scrolling, it is very sluggish in IE. Firefox only has the vertical scrollbar in the body problem and since the header is shown in that browser, the body overlaps it when scrolled up. The page was originally designed in iWeb and then I had to tweak the code in Dreamweaver to get the fixed header and footer. Hope someone can help me out here! Cheers, Jason. ....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>"; ?> This will be hard for me to explain so I will add an image: http://img75.imageshack.us/my.php?image=examplexu6.gif How do I go about loading a page within a page. For example, in the pic, if you clicked Cost it would load a page within the loading area without taking off to another location. I seen it on a site before, i remember the links were something like "/?p=cost" or something like that. And the page appeared to not navigate elsewhere, the cost page was just loaded within the page i was on. hope that makes sense, if so any examples on this? is it hard to do? messy? safe with most browsers? thanks Hey, im trying to find out why the header on my website isnt at the top of the page. it also moves sometimes even though the code appears to be all the same. the address is www.themonsterbox.com thanks in advance for any help. 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! 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 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! 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 I'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 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/ 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. 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 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, 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!!! 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! |