R
E
S
O
U
R
C
E
S
       Question Index      Products & Services      Contact Us      Links


WebHatchers will design & develop your site for you.
_______________________

Website Menu Heaven: side or top popup menus, buttons, image rotators, navbars, tons more.
_______________________

Send us your questions and wittiest comments.
_______________________

Report errors on our site.
_______________________

Share your neatest DHTML examples with us; we may publish them.
_______________________


_______________________

      QUESTION INDEX      

Question Index
Browser Insanity
JavaScript
Animation
Buttons and Menus
CSS and HTML
PHP
Personal Status Boards
Content Management
   Systems
Website Directory
   CMS Systems


 INFORMATIVE ARTICLES 

Menus-and-Buttons-
Part-I.htm


Menus-and-Buttons-
Part-II.htm


Change-Div-Size-Color-
and-Location-with-the-
W3C-DOM.htm


Bouncing-Ball-Animation-
with-the-W3C-DOM.htm


Style-Changes-with-the-
W3C-DOM.htm


Animation-with-the-
W3C-DOM.htm


Window-Play-and-Some-
Important-DOM-Methods.htm


Using-getElementsByTagName
-and-getElementsByName.htm


The-CSS-Resources-Intro-
Page.htm


Convert-Word-Files-to-HTML-
and-Install-Editor2-to-
Use-Instead-of-NotePad.htm


CSS-Issues.htm

What Are Fifteen Simple Methods of Doing Web-Page Pop-ups?

Security levels from Javascript and PHP input filtering

What is a regular expression general input validator?

What is a regular expression user name validator?

What is a regular expression password validator?

What is a regular expression email validator?

What is a regular expression URL validator?

How can I convert a Javascript array to a PHP array?

How can I Dynamically Create Input Boxes with Validation?

How do I use JavaScript Object Notation (JSON) in PHP and JavaScript to convert strings and arrays from PHP to JavaScript?

How do I add html to a web page with JavaScript, PHP or ssi includes?

How do I add html to a web page with JavaScript includes?


PHP

How do you put PHP variables in URL and link text?

What is PHP Code for Multiple PSB Hosts?

What is Registration PHP Code for Multiple PSB Hosts?

What is Registration PHP Code for Multiple PSB Hosts with a captcha?

What is Administrator PHP Code for Multiple PSB Hosts?

What's the PHP code for a script for a PSB?

What's the PHP code for a script for PSB updating?

What's the PHP code for a script if you forgot your user name?

What's the PHP code for a script if you forgot your password?

What's the PHP code for a script to change a member's email address?

What's the PHP code for a script to connect to a MySQL database?

What's the PHP code for a script to close a member's account?

What's the PHP code for a script to edit group member?

What's the PHP code for a script to add group member?

What's the PHP code for a script to reset a MySQL table's data to its original?

What's the PHP code for a script to edit a MySQL table's data?

What's the PHP code for a script to change a username?

What's the PHP code for a script to change a password?

What's the PHP code for a script to delete group member?

What's the PHP code for a script to view membership data?

What's the PHP code for a script to change an administrator's password?

What's the PHP code for a script to logout?

What's the PHP code for a script to login?

Security levels from Javascript and PHP input filtering

Security levels and PHP

How can I convert a Javascript array to a PHP array?

What is PHP Code to Prevent Duplicate Data Input - Like User Names or Members?

What is PHP Code for PSB Status Update for Multiple PSB Hosts?

How do I sort 1 PHP array and have the other arrays sort in parallel to how the first array sorts?

How do I use JavaScript Object Notation (JSON) in PHP and JavaScript to convert strings and arrays from PHP to JavaScript?

How do you do PHP-to-JavaScript String Conversion with No JSON?

How do you Convert PHP String to JavaScript String?

How do you Post a JavaScript Array to a PHP Array?

How do you send a value to PHP using JavaScript?

Info on unwanted primary field auto-sorting

How can I do instant article font size, font family, and paragraph formatting with radio buttons?

How can I create custom HTML tags that are safer for MySQL databases?

How can I edit text from MySQL databases by using a textarea box?

How can I highlight matched search terms in a MySQL database table search?

How can I search using not only exact phrase matching but also a series of words to match in a MySQL database table search?

What's the code for an Ajax and PHP Based Input Filter?

Ajax and PHP Based Insult Auto-Completer

How can I use PHP and MySQL for Checking Key Codes to Allow Update to a New Software App Version?




Personal Status Boards (PSB™)

Standard Free PSB

PSB Pro Version

Social PSB

Social PSB Plus (with Email)

Business PSB

Business PSB Plus (with Email)

PSB demo

Social PSB demo

Business PSB demo

So what's all this PSB stuff about?

Chart comparing business status boards

PSB hosting diagram

PSB Licence Agreement




Article Content Management System

Content Management System Introduction

Content Management System—Article Navigation

Content Management System—Article Indexing

Content Management System—Article Editing

Content Management System—Article Searching

Content Management System—Article Deleting

Content Management System—Article Writing

Content Management System—Article Reading

What are the terms of use for our Article Content Management System?




Website Directory Content Management System

Website Directory—Delete Category

Website Directory—Delete URL

Website Directory—Add URL

Website Directory—Add Category

Website Directory—Directory Creating

Website Directory—View by Category (Demo Code)

Website Directory—View by URL (Demo Code)

Website Directory—View by Category (Demo)

Website Directory—View by URL (Demo)

Website Directory—View

Website Directory—View (Demo)



Copyright © 2002 -
MCS Investments, Inc. sitemap

PSBs, social networking, social evolution, microcommunities, personal status boards
PSBs, social networking, business personal status boards
website design, ecommerce solutions
website menus, buttons, image rotators
Ez-Architect, home design software
the magic carpet and the cement wall, children's adventure book
the squirrel valley railroad, model railroad videos, model train dvds
the deep rock railroad, model railroad videos, model train dvds

The Many CSS Page Layout Techniques

You may have noticed that CSS1 and CSS2 lack a column property so web page column layout is awkward at best. Well, like the opacity property, it's being put into the W3C CSS3 specification. Until that's what everyone has, we're stuck with silly workarounds and browser insanity.

The files below are only 4K to 5K; they are layout technique testing files. The CSS rules that each div uses will be found conveniently inside the div not just as online style declarations, but also as visible text in the on-screen div box. The files all contain footers even though the majority of sites we've seen don't have any footers. The footers don't dynamically move down (when you increase browser font size or play with the window) on any of the files except the 2- and 3-column-all-float-based-pages, thanks to W3C CSS1 and CSS2 specification naivete, so we had to use <br> codes and our advice to avoid footers being crashed into by expanding columns is: use enough <br> codes so the footers are still unviolated with browser font size temporarily set to 200%. Note that while floating is by far the best footer solution, using floats is rumored to create various problems, and you'll need hacks and workarounds for these if you happen to encounter them. Simple floated layouts seem to work fine, but complex ones reputedly don't act reliably cross-browser, and cramming lots of content into a floating div can get the div chopped off in some browsers. But they worked so well in our tests, perhaps it's worth it!

The 2-column relative-positioning-based page wins the prize for most problems at higher screen resolutions—but only in Netscape. The 3-column one isn't nearly as bad; go figure. The 3-column padding-based page is the biggest pain relative to fine-tuning the code—we even used a gray background to get it right. The 2-column one was fine though—meaning unproblematical.

Some CSS books and website programmer gurus have said that the padding method makes a good 2-column strategy and the margin method makes a good 3-column strategy. We have no experience to contradict this assertion. Other CSS books chicken out and avoid both the column and footer challenges altogether—can you believe that someone would write a CSS book without the word "column" in the index! Apparently, the people teaching us should design a few real layouts now and then, so they don't think of columns as not worth mentioning, since, after all, who would want those darn things anyway?

Using absolutely positioning, fixed-width, left and right columns and having a dynamically expanding center column is already a CSS classic. In such a case a right column with a left property of around 80% is popular, along with an unpositioned middle column with percentage-expressed margin sizes right and left (the latter can be in pixels sometimes). The 3-column layout with footer has the experts reaching for (a) the strict doctype, which will not help 31% of us, (b) JavaScript Routines to figure out which is the longest column so the footer stays unviolated, (c) lots of nesting of float elements to avoid potential problems, and (d) CSS tables, which are just the infamous HTML table tag page layout tables with a prettier name and more acceptability.

2-column-margin-based-page.html is a test page for 2-column margin-based layout. This page layout method seems okay.

3-column-margin-based-page.html is a test page for 3-column margin-based layout. This page layout method seems quite good.

2-column-left-value-based-page.html is a test page for 2-column left-value-based layout. This page layout method seems okay.

3-column-left-value-based-page.html is a test page for 3-column left-value-based layout. This page layout method seems okay.

2-column-padding-based-page.html is a test page for 2-column padding-based layout. This page layout method seems quite good.

3-column-padding-based-page.html is a test page for 3-column padding-based layout. This page layout method seems iffy.

2-column-relative-positioning-based-page.html is a test page for 2-column partial relative-positioning-based layout. This page layout method seems iffy. Its relatively positioned div is for the purpose of conveniently positioning smaller objects inside a larger, containing object.

3-column-relative-positioning-based-page.html is a test page for 3-column partial relative-positioning-based layout. This page layout method seems okay. Its relatively positioned div is for the purpose of conveniently positioning smaller objects inside a larger, containing object.

2-column-useless-relative-positioning-based-page.html is a test page for 2-column relative-positioning-based layout. This page layout method stinks. When you try to make a whole page relatively positioned rather than just positioning a few objects inside one minor div, the IE scroll bar disappears and you can't even get to all the page! There's a fix but it's not exactly a delightful one.

2-column-nested-div-based-page.html is a test page for 2-column nested-div-based layout. This page layout method seems quite good, giving cross-browser compatibility without even breaking a sweat.

3-column-nested-div-based-page.html is a test page for 3-column nested-div-based layout. This page layout method seems quite good, giving cross-browser compatibility without even breaking a sweat.

2-column-all-float-based-page.html is a test page for 2-column all-float-based layout. This page layout method seems quite good, supporting footers better than any other method. This particular float layout has a floating div in the first paragraph in addition to all three columns being floated.

2-column-float-based-page.html is a test page for 2-column partial float-based layout. This page layout method seems okay. It merely floats two objects in two divs, both in the middle column.

3-column-float-based-page.html is a test page for 3-column partial float-based layout. This page layout method seems okay. It merely floats two objects in two divs, both in the middle column. Read about an optimized version of this layout in the section below entitled Dealing with User Text Enlargement for Accessibility.

3-column-all-float-based-page.html is a test page for 3-column all-float-based layout. This page layout method with everything floated, like the 3-column-float-based-page.html method with just two colored divs floated in the center column, seems quite good, supporting footers better than any other methods. The everything-floated layout has a floating div in the first paragraph in addition to all three columns being floated.

The dreaded Netscape float bug: The float property is associated with many bugs, documented and not so documented, but the worst of these, argueably, is the dreaded linked image bug. When you have a great web page put together with the use of float:left or float:right along with some linked images, and you've tested it on IE and it works great, so you're down to the final test phase where you whip over to Netscape and test it, you'll find that the images that are floated malfunction when you try to click them as links! Weirdly enough, the borders of the image seem to be good links, but not the image. The ramifications of this are that you have to do one of three things (after you've finished tearing your hair out):

We found that the CSS method works even without the float property, but the resultant page has to use absolute positioning to simulate float (text horizontal to an image) and the word wrap part of float is gone, so this is weak. On the other hand, the use of HTML works great, and you get text wrapping around an image as well as great-working image links. We like to put the HTML table in a NON-absolutely positioned div (with margin:0 and padding:244px 62px 0 92px) that helps position this table; then put the image inside that table in another table, aligned right and with the <a href> tag before the <img> tag. It's too bad we have to revert back to tables for layout just because Netscape 7 cannot deal with links in floats, but the table workaround works great so what the hell . . .

So here's an idea of how I do it:

<TABLE border="0" width="100%">
  <TR>
    <TD width="150" rowspan="99"> </TD>
    <TD>
<H1 align=center>Flavored G-strings</H1>
<table align="right" border="1" width="200">
  <tr>
    <td><A HREF="t.html"><img src="h14.jpg" width="200" height="199"></a></td>
  </tr>
    </td>
  </tr>
</table> blah blah (put 100 to 200 words here—whatever causes paragraph to wrap around image)
    </TD>
  </TR>
</TABLE>