HTML - Anchored Div?
Greetings,
I have problems with windows being resized. When a window resizs itself the bottom footer changes position relative to the inline frame. See the two examples attached. Notice that the red/green break on the bottom is to the left of the inline in the 1st image and near the center in the 2nd image. This is a particular problem b/c the footer image will eventually become an image map. My friend reccomended I use a 'sticky' footer css code located he http://ryanfait.com/resources/footer...ottom-of-page/ but i don't understand the code, or really even know what the code is supposed to accomplish. Here was my first attempt to use it. HELP <!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>The works of D.M. Rosemark</title> <style type="text/css" media="screen"> <!-- body { background: url("bkg.gif"); background-repeat:no-repeat; background-attachment:fixed; margin: 0px } div#wrap { margin: 0 auto; width: 800px; } div#header { height: 150px; background: url("bkga.gif"); background-repeat:no-repeat; background-attachment:fixed; margin: 0px } div#footer { height: 50px; background: url("bkgc.jpg"); background-repeat:no-repeat; background-attachment:fixed; margin: 0px } div#frame { margin: 0 auto; width: 600px; } iframe#one { border-style:ridge; border-width:10px; border-color:#999999; width: 600px; height: 375px; padding:1px; } { margin: 0; } html, body { height: 100%; } .wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -4em; } .footer, .push { height: 4em; } //--> </style> </head> <body> <div id="header"></div> <div class="wrapper"> <p>Your website content here.</p> <div class="push"></div> </div> <div class="footer"> <p>Copyright (c) 2008</p> </div> <div id="frame"><iframe id="one" frameborder="0" src="01.html" scrolling="yes"> </iframe></div> <div id="footer"></div> </body> </html> Similar TutorialsHi, I am new to html hence I need the help. ok I have several links for other pages. When the mouse hovers over a link a small description is displayed on the webpage, where ever I want but probably at the bottom of the page. Similar to a tooltip but actually located on the webpage rather than floating next to the arrow. thanks Greetings, Thanks in advance for any help. Basically, I'm new to HTML, I've made a site with an external CSS file, its all good, except that all the elements stay to the left. The browser background is grey, the actual page background is white (its an image, however, not just the colour). The page adjusts when I resize the IE window, but nothing else does, they just stay there. I've tried absolute positioning, relative, and so on, but nothing seems to fix it. How do I get the elements to move? I've attached the CSS and index file (named portfolio) for reference. I apologise in advance for my general noobiness. I hope the poorly written attachments don't hinder the helping process. Thank you, Panda. |