tdktank59
Nov 21 2007, 04:35 AM
| | Allright so im working on a page and i need ot to always extent to the bottom of the page go figure lol....
However i cant figure out how to do this and have it work...
either css or w/e else can be used to do it i just cant get it to flaot or sit at the bottom
heres what ive got so far
http://woodlawnwt.com/tdc/duffield-collection.html
works in dreamwearver ( i use it for the color code and the ftp stuff... not for the wysiwig stuff lol...) but i cant get it to show in either ff or ie
http://ryanfait.com/sticky-footer/
solution is there.... lol |
Reply
Saint_Michael
Nov 21 2007, 04:56 AM
easy fix, and I am reading your post right you want the content box between the header and the footer to extend you can do it one of two ways: First one is fixed heighted in which I just add px, as you can see from here thats what I did, however for you dreamweaver fans it is line 58 and for this post I just marked with <--- LINE 58. CODE <table style="border-left: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0);" align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="798"> <tbody><tr> <td height="99"><img src="duffield-collection_files/duffield-collection_02.png" alt="" height="99" width="798"></td> </tr> <tr> <td style="border-top: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);" bgcolor="#614c1e" height="25"><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td style="color: rgb(255, 255, 255); padding-left: 10px;">Home | Paintings | Contact Us</td> <td align="right"><table border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td style="padding-left: 5px; padding-right: 5px; color: rgb(255, 255, 255);">Find an Artist:</td> <td><input name="search" value="" type="text" width="150"></td> <td style="padding-left: 5px; padding-right: 10px; color: rgb(255, 255, 255);">» Search</td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> <tr> <td style="padding: 18px; height: 700px;" bgcolor="#ffffff" valign="top"> <----LINE 58 <table style="border: 1px solid rgb(224, 193, 193);" bgcolor="#f4e9e9" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td width="30%"> </td> <td width="70%"> </td> </tr> </tbody></table> </td> </tr> <tr> <td align="center" background="duffield-collection_files/duffield-collection_05.png" bgcolor="#ffffff" height="40" valign="middle">Copyright © 2007 The Duffield Collection</td> </tr> </tbody></table> </body></html> The other version which I think is the one you want deals with Percentages and from the looks of it this is the one you want. CODE <table style="border-left: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0);" align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="798"> <tbody><tr> <td height="99"><img src="duffield-collection_files/duffield-collection_02.png" alt="" height="99" width="798"></td> </tr> <tr> <td style="border-top: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);" bgcolor="#614c1e" height="25"><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td style="color: rgb(255, 255, 255); padding-left: 10px;">Home | Paintings | Contact Us</td> <td align="right"><table border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td style="padding-left: 5px; padding-right: 5px; color: rgb(255, 255, 255);">Find an Artist:</td> <td><input name="search" value="" type="text" width="150"></td> <td style="padding-left: 5px; padding-right: 10px; color: rgb(255, 255, 255);">» Search</td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> <tr> <td style="padding: 18px; height: 100%;" bgcolor="#ffffff" valign="top"> <table style="border: 1px solid rgb(224, 193, 193);" bgcolor="#f4e9e9" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td width="30%" ><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></td> <td width="70%"> </td> </tr> </tbody></table> </td> </tr> <tr> <td align="center" background="duffield-collection_files/duffield-collection_05.png" bgcolor="#ffffff" height="40" valign="middle">Copyright © 2007 The Duffield Collection</td> </tr> </tbody></table> </body></html>
Reply
tdktank59
Nov 21 2007, 05:34 AM
I aslo failed to mention that i want it to be for any size window not just mine or yours... so its gotta be css i guess or javascript... but meh i dont know... actually that doesnt work lol... check ur <br />'s in the second one... what im trying to do is have the footer litteraly float at the bottom of the page... with the white extending down the little pink box is worthless... heres kinda what im talking about but when it goes farther than the page it screws up... as show here... http://woodlawnwt.com/tdc/test.html
Reply
sonesay
Nov 21 2007, 06:01 AM
very common problem with working with layouts in CSS. I've used similar layouts in the past and when you start adding content into it the layout falls apart. I dont know whats causing it since I dont fully understand how to use CSS. Theres also the issue with certain broswers failing to display it correctly when others do.
Reply
tdktank59
Nov 21 2007, 06:32 AM
http://woodlawnwt.com/tdc/duffield-collection.htmlseems to wokr now bult it off of the dudes code instead of usiong my own lol... guess it fixed it... feel free to copy w/e u want and id do it soon casue im taking it down shortly and replacing it with my actual code... actually never mind heres what ive got and it seems to work... pretty much eveything is copied form that page i just changed the stuff... so if an admin wants to remove the pints for this post w/e but i say at elast leave the content incase that ryan dudes site goes down... so all the codes here... page.html 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="en"> <head> <title>The Duffield Collection</title> <link rel="stylesheet" type="text/css" media="screen" href="layout.css" /> <link rel="stylesheet" type="text/css" media="screen" href="style.css" /> </head> <body>
<div class="wrapper"> <div class="header"></div> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td bgcolor="#614c1e"> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top: solid 1px #000000; border-bottom: solid 1px #000000;"> <tr> <td style="color:#FFFFFF; padding-left:10px;"> Home | Paintings | Contact Us </td><td align="right"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td style="padding-left:5px; padding-right:5px; color:#FFFFFF;"> Find an Artist: </td><td> <input type="text" width="150" name="search" value="" /> </td><td style="padding-left:5px; padding-right:10px; color:#FFFFFF;"> » Search </td></tr> </table> </td></tr> </table> </td></tr> <tr><td style="padding: 18px;"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f4e9e9" style="border:solid 1px #e0c1c1;"> <tr> <td width="30%"> </td> <td width="70%"> </td> </tr> </table> </td></tr> </table> <div class="push"></div> </div> <div class="footer"> Copyright © 2007 The Duffield Collection :: All rights reserved.<br /> Created by Woodlawn Web Technologies </div>
</body> </html> layout.css CODE * { margin: 0; } html, body { height: 100%; } .wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -40px; /* the bottom margin is the negative value of the footer's height */ } .footer, .push { height: 40px; /* .push must be the same height as .footer */ } style.css CODE body { text-align: center; } .wrapper { width: 798px; text-align: left; border-right: solid 1px #000000; border-left: solid 1px #000000; } .header { width: 798px; height: 99px; text-indent: -9999em; background: #fff url(images/duffield-collection_02.png) no-repeat; } img { float: right; } h2 { padding: 15px 0; color: #1b73d6; font: 1.3em verdana,sans-serif; } p { padding: 0 0 15px; color: #194379; font: 1em/1.3em arial,sans-serif; } .footer { width: 798px; margin: 0 auto; background: #a3b2c6 url(images/duffield-collection_05.png) no-repeat 0 0; } a { color: #194379; } a:hover { text-decoration: none; }
Reply
Saint_Michael
Nov 21 2007, 06:33 AM
Well it was your coding of the CSS file that was messing it up, you had an extra height:100%; that did not need to be in there. I had to rearrange your css code to figure it out, and so I present you your footer solution. Also some of your divs where missed places thus the reason your footer was all up in the content. CSS CODE */
* { margin: 0; } html, body { height: 100%; } body { height:100%; background-color:#e0dac1; margin-bottom:0; margin-top:0; } body,td,th { color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; } a:link,a:visited,a:active { color:#666; text-decoration:none; }
a:hover { color:#000; text-decoration:none; }
.wrapper { background-color:#FFF; border-left:solid 1px #000; border-right:solid 1px #000; margin:0 auto 40px; position:relative; width:798px; }
.banner { background-image:url(images/duffield-collection_02.png); background-repeat:no-repeat; height:99px; width:798px; }
.nav { clear:right; float:left; height:25px; text-align:left; vertical-align:middle; }
.nav_container { background-color:#614c1e; border-bottom:solid 1px #000; border-top:solid 1px #000; height:25px; width:798px; }
.search { clear:right; float:right; height:25px; text-align:center; vertical-align:middle; } .container { background-color:#FFF; width:798px; }
.content { padding:18px; width:762px; }
.footer, .push { height: 40px; /* .push must be the same height as .footer */ }
.footer { background-color:#cbc8ae; background-image:url(images/duffield-collection_05.png); background-position:center bottom; background-repeat:no-repeat; margin-bottom:0; margin-left:auto; margin-right:auto; position:relative; text-align:center; vertical-align:middle; width:798px; }
HTML CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>The Duffield Collection</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="test_files/style.css" rel="stylesheet" type="text/css" /> </head><body> <div class="wrapper"> <div class="container"> <div class="banner"></div> <div class="nav_container"> <div class="nav">home artuists contact us</div> <div class="search"><form action="search.php" method="post"><input name="search" value="" type="text" width="150" /> </form></div> </div> <div class="content"></div> </div> <div class="push"><div class="footer"> Copyright © 2007 The Duffield Collection :: All rights reserved.<br /> Created by: Woodlawn Web Technologies </div> </div> </div> </body></html> So now it should work like the footer sticky was designed for. EDIT: Ok which design are you going with tables or tabless??
Reply
tdktank59
Nov 21 2007, 08:19 PM
allright new update... got most of it working however i cant get the background to extend to the bottom... i have a quick fix method but i really dont want to use it since i requires another image loading... (for the background) http://woodlawnwt.com/tdc/index.phpif u need any of the php code ill post it.... otherwise all the html is visible \ allright somehow fixed it removed the height: 100%; from the wrapper css in layout
Reply
Recent Queries:--
css min-height "background image" 100% - 70.54 hr back.
-
css background-color height 100% - 99.67 hr back.
-
div height 100 percent header and footer - 142.15 hr back.
-
intitle:"100% height" css strict firefox - 354.28 hr back.
-
css 100 percent height strict - 608.80 hr back.
-
css 100 percent - 674.14 hr back.
-
css 100 percent height - 88.23 hr back.
Similar Topics
Keywords : css, 100, percent, height
- How Do I Extend My Div To 1oo% Height?
Also welcoming criticisms on my webpage (13)
Firefox Explodes When I Put Height To 100%
What's up with that? (3) CODE <table width="100%" height="100%" cellspacing="0"
cellpadding="0"><tr><td><table width="100%"
background="/images/bg.gif" cellspacing=0><tr><td width="100%
BACKGROUND="/images/bg.gif"></td><td valign="right"><img
src="/images/greyhound.gif"></td></tr></table> <table
height="100%" width="100%" cellspacing=0><tr height="100%"
width="100%" bgcolor="....
100% Height Issue With Stretching Top To Bottom - Full Page
Problem with content not stretching from top to bottom. (5) Another CSS problem thats been annoying me. I got this tempalte off
http://www.xs4all.nl/~peterned/examples/csslayout1.html the css file is here
http://www.xs4all.nl/~peterned/examples/css/layout1.css I went ahead and applied it to my template.
Their main divs contain 1 main container, 3 sub divs (header, content, and footer). HTML div
id =" container "> div id =" header "> /div > div id =" content "> /div > div id
=" footer "> /div > /div > I've had to add a few more divs inside the header div to
include my table for banner an....
1.2 %
(2) Is it OK to get addicted to drinks with less than 1.2% alc. vol. - say 2-3 drinks a day. I don't
even taste the alcho. itself.....
Is My Height Normal For My Age?
5'6 12 yr old Is This Normal? (32) Hi, i just graduated from the seventh grade, and at my last physical, i was 5'6 tall. Is this
normal? My dad is abot 6' and my mom is somewher around 5'8. im almost the youngest person,
but almost the tallest in my class. i hate being taller than all the guys because it is almost
impossible to get a date. (but luckily i have one. I'm so lucky!!!) Topic title
must be specific; one-line summary of your post. Modified. ....
Destroy Your Hdd
% ways of destroying your HardDrive w/o any trace (5) If you need to throw away a harddrive, you gotta make sure there is nothing left on it. Or maybe you
have a bad feeling that someone will be knocking on your door soon. Either ways, better safe than
sorry. This is five methods for completely whiping out your hard drive. 1. Hydrochloric
(Muriatic) Acid Burn This stuff is highly toxic, so you have to be fully prepared to use it and
wear all the safety equipment of the day (eye goggles, aci-resistant gloves etc). To destroy your
hard drive using this method you will need to pour in a measure of Hydrochloric Acid into a ....
.htaccess Override
Where the #$%^ is httpd.conf located? (6) Hey. I'm currently developing a site for a client using Joomla (the CMS), and am trying to
enable search engine friendly URLs. To do this, I need to enable .htaccess override for a specific
set of directories. Therefore I have two questions: 1) Where is httpd.conf (the apache config
file) located in our installiations? I've spent about a half an hour browsing through
everything, and still havn't found it. 2) How would I go about enabling .htaccess override just
for a specific set of directories (just one directory, and all of its sub directories). Any ....
The Answer Is Google Adsense
90 % topics here are SCAMS (10) Dear all I too have been trying to make money online for a looooong time .. Most of them are SCAMS.
In surfjunky, i reached payout and they banned me. I think THE best way of earning something for
real online is by GOOGLE ADSENSE. I was a n00b too. I saw this page and think this will prove useful
for those who doesnt have an account yet. http://googlefreak.co.nr/adsense.htm It's
google's and hence, no scam.....
Height % In Ff Problems With Css
(3) Does anyone know how to make the height of a div in firefox equal to the percentage you input? For
example if I put blablabla the div container will only be as high as the text makes it, when in
internet explorer it does make it take up 100% of the page or whatever height in percentage I input
in it. by the way, html, body {} have 100% height in them, so does the container that has the div
element. Example: html,body {height:100%;} #container {height:100%;} #div {min-height:100%;} the
one called #div is the one I want with 100% height. Thanks for any help.....
How To Make A Auto Height Adjusting Website?
Height increases depending on the size of the content. (6) I just got a fresh idea on my new site. I got every thing planed out, the content and the colours
i'm going to use for the layout. But osmething else came to my mind. I have seen site when if
the text is bigger, the hegiht of the layout increases, without affections the layouts design. A
good example would be blogs, where when you make more entries they go down the page rather than
making new pages. I did think about i frames, but that is not what i was looking for. I dont mind
if it is in PHP, as most of my site is.....
Basic Css Layout Issue
Floated Cell with similar height (5) Okay say I was building a site (what do you know I am!) and I want to use CSS. the problem
being I don't know how to make a floated cell be the same height as another. FOr example CODE
<div id="main"> <div id="left"> just some </br> stuff
over </br> here! </div> <div id="right"> but...</br>
over here </br> I have </br> even more stuff</br> to </br>
display</br> </div> </div> now If I float the left to the left ....
Div Child Height Same Height As The Father
how to set child height to be the same.. (2) I will try to explain myself as briefly as possible. I want have the next xhtml squeletone: CODE
<html> <head> </head> <body> <div
id="container"> <div id="header"> <div
id="searchEngine"> <!-- Search Engine Markup > </div>
</div> <div id="header2"> </div> <div
id="primarynav"> <!-- primary nav Markup > </div>
<div id="content....
Setting The Height Of A Tablerow
Its variable so I want to use (4) I have a html page with a table. The next "image" shows the layout:
-------------------------------------------------------------- HEAD CELL
-------------------------------------------------------------- CONTENT | Main content cell LISTING
| CELL... | --------- Now the "Content listing cell" should always reach the bottom (its a grey
cell and the main content is white, so their should be two columns). If the main content cell's
content is long enough so you can scroll down, their is no problem. But when the "Main content
cell"'s content doesn't reaches ....
Popup Window With Height And Width?
(9) I will try to explain: When clicking on the link, a pop-up window will be opened. I also want to
have the width=300 and height=160 (just examples /wink.gif' border='0'
style='vertical-align:middle' alt='wink.gif' /> ) Could someone give me a short code for that?....
siteuptime %
(2) Hey, i cant work out why the % uptime for freenukehosting.com is stuck at 90.374% with 4 downtimes.
I mean...
it was at 90% on the 14th.
Therefore, 14 days, = 366 hours,
90% of that means
it had been up for 329 hours....
Given that it hasnt been down for the next 4 days...
it would
be up for
329+96 hours = 425 hours this month
out of a possible 366+96 = 462 hours.
That is
92% uptime...
Is the siteuptime stat working?....
Swearing - *%$*
(19) What do you feel about sweaing when posting? Just thought it wud be good to see where the community
stands....
Setting A Maximum Table Height
(3) How do I set a maximum table height? I tried height and max-height but neither worked. I need to
have it a certain height because more than that height it adds a vertical scrollbar, which adds a
horizontal scrollbar because I have an image that's pushing it. beeseven.trap17.com I want
the table that the updates are in to be a certain height with a scrollbar there instead of making it
above the page length and adding a main scrollbar.....
Adding Width And Height To Page
(8) how do you add width and height to your page? without adding it to your link you previously
clicked... I mean, that the width and height should be included in the ORIGINAL page... i hope
someone can help me with this... thanks in advance! /cool.gif' border='0'
style='vertical-align:middle' alt='cool.gif' /> btw: i'm not that familiar with
scripting.......
Looking for css, 100, percent, height
|
|
Searching Video's for css, 100, percent, height
|
advertisement
|
|