![]() |
| ||
| Content Breaking thru Borders 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 :confused: The URL: http://www.chocolatelover.net/ The HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> The CSS: html |
| ||
| Re: Content Breaking thru Borders Thankf for pasting all your code. I'll look at it. |
| ||
| Re: Content Breaking thru Borders Hey, thanks much! I'm pretty sure its something small I am just missing. |
| ||
| Re: Content Breaking thru Borders 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. |
| ||
| Re: Content Breaking thru Borders Quote:
Hi Tgear, 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 |
| ||
| Re: Content Breaking thru Borders 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. |
| ||
| Re: Content Breaking thru Borders 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 |
| ||
| Re: Content Breaking thru Borders 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. |
| ||
| Re: Content Breaking thru Borders 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. |
| ||
| Re: Content Breaking thru Borders Hey it looks great. That was a pretty easy solution. I don't think I would have picked that one up. Great job tgreer. |
| All times are GMT -4. The time now is 3:58 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC