bleach20xx Posted February 20, 2009 Share Posted February 20, 2009 So...I've been building web sites using both tables and CSS for awhile now...I'm trying to make the switch over to using only CSS and div floats instead of using tables, but I'm running into an issue that I, nor anyone that I've talked to thus far, can get our heads around. The problem I'm running into is that I have a horizontally expandable site and it lays out fine, unless a user's browser window is not the correct size. If it is too small, the div tags start stacking underneath each other. Is there a way to stop this from happening? I've seen plenty of other web sites out there that seem to be doing the same thing as me (well, obviously not since their sites don't get messed up) but I just can't seem to figure out what I'm doing wrong. Here's the site. Resize your browser window and you'll see my problem... http://hypboard.com/cssissue/index.html This is the CSS body { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; margin: 0 auto; color: #560001; background: #660000; } .maincontent{ background: #ffffff; width: 100%; } div#banner{ margin-top: 10px; } div#footer{ background: #660000; color: white; border-top: 2px solid #330000; padding: 0px 10px; margin: 0px; } .flashside{ vertical-align: bottom; margin: 0px; } #midfloat{ float: left; } #navfloat{ float: right; width: 173px; } .endfloat{ clear: both; } Quote Link to comment https://forums.phpfreaks.com/topic/146139-div-tags-stacking-problem/ Share on other sites More sharing options...
jcombs_31 Posted February 20, 2009 Share Posted February 20, 2009 You have a lot of problems with the way you are developing. I would advise to start with some basic css layout tutorials http://www.alistapart.com/articles/holygrail Quote Link to comment https://forums.phpfreaks.com/topic/146139-div-tags-stacking-problem/#findComment-767212 Share on other sites More sharing options...
bleach20xx Posted February 20, 2009 Author Share Posted February 20, 2009 I appreciate that link. Following that example I was able to figure out, by tweaking a bit of the code, what I was doing wrong and fixed the problem. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/146139-div-tags-stacking-problem/#findComment-767268 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.