| | |
Content Breaking thru Borders
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hi all,
I am having a problem with the contents of my page breaking thru the bottom border of my page. It looks fine in Explorer (that's a turn-about, eh?) but at 800 x 600 or lower, in Firefox it breaks.
Anything I am overlooking?
Thanks
The URL:
http://www.chocolatelover.net/
The HTML:
The CSS:
I am having a problem with the contents of my page breaking thru the bottom border of my page. It looks fine in Explorer (that's a turn-about, eh?) but at 800 x 600 or lower, in Firefox it breaks.
Anything I am overlooking?
Thanks
The URL:
http://www.chocolatelover.net/
The HTML:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<!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>Chocolate Lover</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Keywords" content="chocolate,recipe,dessert,desserts,cookie,cookies,coco,cocoa,cake,brownie,pie,pies,sweet,valentine,boyfriend,girlfriend,love,gift,gifts,romance,romantic,chocolate addiction,buy chocolate,purchaes chocolate,chocolate sales,godiva,godiva chocolate" /> <meta name="Description" content="chocolate recipes for cookies, cakes, brownies, pies, etc. Links to other chocolate-related sites. Chocolate sales." /> <meta name="copyright" content="2000" /> <meta name="author" content="Rick Shrum" /> <meta name="revisit-after" content="1 week" /> <meta name="Robot" content="ALL" /> <meta name="rating" content="General" /> <meta name="DC.Title" content="Chocolate Lover" /> <meta name="DC.Creator" content="Rick Shrum" /> <meta name="Description" content="chocolate recipes for cookies, cakes, brownies, pies, etc. Links to other chocolate-related sites. Chocolate sales." /> <link rel="stylesheet" href="style.css" type="text/css" /> <!--[if lt IE 7]><script src="pngfix.js" type="text/javascript"></script><![endif]--> </head> <body> <div style="margin-bottom:3%;"> <div align="center" style="margin-top:10px;"> <script type="text/javascript" language="javascript" src="http://www.anrdoezrs.net/placeholder-578035?target=_blank&mouseover=N"></script> </div> <div align="center" style="margin:0 auto;"> <img src="choclvr.gif" style="width:443px;height:40px; padding-top:20px;" /> <br /> <img src="swirl.gif" width="359" height="58" align="absbottom" /> </div> <br /> <div class="menu" style="float:left;width:15%; padding:0px 15px 0px 15px; border:0px; padding-bottom:5px;"> <p> <a href="index.html"> <img src="small-kiss.png" width="22" height="22" align="texttop" alt=":-*" border="0" /></a> <a href="index.html">Home</a> </p> <p> <a href="brownies.html"> <img src="small-kiss.png" width="22" height="23" align="texttop" alt=":-*" border="0" /></a> <a href="brownies.html">Brownies</a> </p> <p> <a href="cakes.html"> <img src="small-kiss.png" width="22" height="23" align="texttop" alt=":-*" border="0" /></a> <a href="cakes.html">Cakes</a> </p> <p> <a href="candy.html"><img src="small-kiss.png" width="22" height="23" align="texttop" alt=":-*" border="0" /></a> <a href="candy.html">Candy</a> </p> <p> <a href="cookies.html"><img src="small-kiss.png" width="22" height="23" alt=":-*" align="texttop" border="0" /></a> <a href="cookies.html">Cookies</a> </p> <p> <a href="pies.html"> <img src="small-kiss.png" width="22" height="23" align="texttop" alt=":-*" border="0" /></a> <a href="pies.html">Pies</a> </p> <p> <a href="various.html"><img src="small-kiss.png" width="22" height="23" align="texttop" alt=":-*" border="0" /></a> <a href="various.html">Various</a> </p> <p> <img src="small-kiss.png" width="22" height="23" align="texttop" alt=":-*" /> <a href="links.html">Links</a> </p> </div> <div style="float:left;margin:0 auto;width:70%;background-image:url(darkchoc.gif); border: 4px outset #3b2525;padding:15px;font-family:'comic sans ms';font-size:1em;color:#ffffff; line-height:150%;"> <!--<table border="3" background="darkchoc.gif" bordercolorlight="#B75B00" bordercolordark="#996633" bgcolor="#663333" bordercolor="#5B2E00" cellpadding="2" cellspacing="2" align="center" hspace="0" style="width:75%;margin-right:15%;">--> <p> <span style="font-size:2em;">C</span>hocolate...<br /> No other food invokes such intense reactions as does this cocoa-derived fare.<br /> This passion for the stuff extends way past the gastromomical aspects and ventures into the psychological realm. "Sensuous", "decadent", & "sinful" are just a few of the adjectives used to describe chocolate. Are we eating a candy bar here or engaging in an illicit affair? <br /> Although chocolate has not yet been targeted by D.A.R.E., people <i>do </i>seem to prone to developing a compulsion for it. While not dismissing the appeal of other flavors, there are no wide-spread accounts of vanilla addiction...no one leaves the snug confines of their home at midnight to satisfy a craving for butterscotch.<br /> Nope, there is nothing quite like chocolate. I hope you also find that there is nothing quite like this website that is dedicated to this wonderous substance. Please come back here again and again because there will always be new things added. Recipes, links, information...you will find it all here in this, the Sweetest Place in Cyberspace! </p> </div> <div style="clear:both;margin:0 auto; text-align:center"><br /> <br /> <img src="chocline.gif" width="33%" height="15" /> <br /> <img src="chocline.gif" width="16%" height="15" /> </div> <p align="center"><img src="swirl.gif" width="359" height="58" /> </p> <p></p> <div style="width:5px;height:5px;margin:0 auto; text-align:center; overflow:hidden;"> <a target="_top" href="http://extremetracking.com/open?login=rik408"> <img src="http://t1.extreme-dm.com/i.gif" height="38" border="0" width="41" alt="" /></a><script language="JavaScript1.2" type="text/javascript"><!-- EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"? EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//--> </script><script language="JavaScript" type="text/javascript"><!-- EXd=document;EXw?"":EXw="na";EXb?"":EXb="na"; EXd.write("<img src=\"http://v0.extreme-dm.com", "/0.gif?tag=rik408&j=y&srw="+EXw+"&srb="+EXb+"&", "l="+escape(EXd.referrer)+"\" height=1 width=1>");//--> </script><noscript><img height="1" width="1" alt="" src="http://v0.extreme-dm.com/0.gif?tag=rik408&j=n" /></noscript> </div> </div> </body> </html>
The CSS:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
html { height:100%; border-spacing: } body { background-color:#ffffff; background-image:url(spreckles.gif); background-attachment:fixed; font-family:'comic sans ms',cursive; color:#6B4229; border: 3px ridge #8b4513; height:100%; } .menu { font-family:'comic sans ms'; font-size:12pt; color:#B6637B; font-weight:600; vertical-align:middle; } .menu img { padding-right:5px; } .menu a:link { text-decoration:none; color:#c26a6a; font-weight:600; } .menu a:visited { text-decoration:none; color:#c28c6a; } .menu a:hover { text-decoration:underline overline; color:#61a55a; }
•
•
•
•
But, where are you expecting the content to go? With small enough browser window, everything breaks. I've looked with both FF and IE and I'm not sure I see a problem.
Thanks for responding.
I would like for the integrity of the page to remain at down to 800 X 600.
Now, it is breaking at 1024 x 768.
What resolution were you viewing it at?
Rick
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
I think I see what you mean... you've set a border on the body element, and your page contents are breaking through that bottom border. Unfortunately, it isn't clear how the "body" element should be treated in the current HTML specifications, so each browser does things differently. Instead of styling your body tag, put all of your page's contents in an DIV, and style the DIV. That should resolve the issue.
P.S. You've also get both your menu DIV and your main DIV floated left. That won't work. Remove the "float: left" from the DIV with all your text.
P.S. You've also get both your menu DIV and your main DIV floated left. That won't work. Remove the "float: left" from the DIV with all your text.
Last edited by tgreer; Nov 4th, 2006 at 10:46 pm.
Know what...that worked! :cheesy:
Now, even at down to 640 x 480 the content does not break thru the bottom border.
Seems to me tho that the body (and especially the html where I also tried defining the border) tags should represent the absolute outer limit for content. I downloaded Firefox 2.0 in the hopes that the problem would be corrected, but alas, it still remained.
No matter tho, since you came up with the solution.
Here's the page now:
http://www.chocolatelover.net/
Now, on to converting all the otrher pages at that site from tables to css!
Thanks again...and thanks also to
Godfear1 who generously offered to look into the problem
Rick
Now, even at down to 640 x 480 the content does not break thru the bottom border.
Seems to me tho that the body (and especially the html where I also tried defining the border) tags should represent the absolute outer limit for content. I downloaded Firefox 2.0 in the hopes that the problem would be corrected, but alas, it still remained.
No matter tho, since you came up with the solution.
Here's the page now:
http://www.chocolatelover.net/
Now, on to converting all the otrher pages at that site from tables to css!
Thanks again...and thanks also to
Godfear1 who generously offered to look into the problem
Rick
Last edited by tgreer; Nov 4th, 2006 at 11:11 pm. Reason: Removed unnecessary quote block.
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
Many people agree, that the "body" tag should be treated as a top-level block element: the "box" everything is in. Another viewpoint is that it is a syntactical (rather than structural) element, and so doesn't have any "dimensions" in and of itself.
Since there is no agreement, the solution is treat the body element like an "open" and "close" statement that has nothing to do with position, size, etc. and to either put everything within a table, or a DIV.
Since there is no agreement, the solution is treat the body element like an "open" and "close" statement that has nothing to do with position, size, etc. and to either put everything within a table, or a DIV.
Last edited by tgreer; Nov 4th, 2006 at 11:14 pm.
I guess its whether you view the body as an indestructible box that nothing can break out of, or as a sink, that should contain everything, but is subject to overflowing (ok, not the besst analogy! lol).
I favor the "all containing box" model myself, since logically, nothing should exist outside of it.
I favor the "all containing box" model myself, since logically, nothing should exist outside of it.
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to have the div layer center on any browser?
- Next Thread: help with this hiding text example Javascript
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column createrange() css cursor date debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n






