3Col_NN4_FMFM - header
Ordered Columns, float-margin/float-margin model

column one

column filler

column filler

column filler

test link

column two

column filler

column filler

column filler

column filler

column filler

column filler

column filler

column filler

column filler

column filler

column filler

column filler

test link

column three

column filler

column filler

column filler

test link

 
 

Column Order

Widths

Width of Col one calculated automatically. Values are percentages unless a value is entered for fixed width in which case all values are pixels.

Column Spacing

Overall Styling

Misc

 

  1. /* ====================================================================
  2. GENERAL STYLING
  3. -------------------------------------------------------------------- */
  4. /* border:nones are for NN4 */
  5. html { margin: 0px; padding: 0px; }
  6. body
  7.     {
  8.     margin: 4px;
  9.     padding: 0px;
  10.     background-color: #999999;
  11.     }
  12. div { margin: 0px; padding: 0px; }
  13. p {padding: 0px; margin: 0px;}
  14. .clear { clear: both;} /* CSS HACK: only for NN4, so now use Caio hack to cleanse palette */
  15. /*/*/ .clear { display: none; } /* */
  16. /* box-wrap is only needed if you want to set a background color for the columns, put a border round the content block or fix the content width */
  17. .box-wrap
  18.     {
  19.     color : #000000;
  20.     background: #cccccc;
  21.     border: 2px solid #000000;
  22. /* CSS HACK: width increased for browsers whose box model is not CSS2 compliant */
  23.     width: 904px;
  24. /*/*/
  25.     wid\th: 900px;
  26. /* */
  27.     }
  28. .box-header
  29.     {
  30.     color: #000000;
  31.     background: #996699;
  32.     margin: 0px;
  33.     padding: 0.5em;
  34.     border: none;
  35.     }
  36. h1 { margin: 0px; }
  37. h2
  38.     {
  39.     font-size: 1em;
  40.     color: #ffffff;
  41.     background-color: #000000;
  42.     margin: 0px 0px 0.5em 0px;
  43.     padding: 0.25em;
  44.     }
  45. .box-footer
  46.     {
  47.     background: #999966;
  48.     padding: 0.5em;
  49.     clear: both;
  50.     border: none
  51.     }
  52. /* ====================================================================
  53. COLUMNS LAYOUT
  54. -------------------------------------------------------------------- */
  55. .columns-float
  56.     {
  57.     float: left;
  58.     width: 700px;
  59.     }
  60. .column-one
  61.     {
  62.     float: left;
  63.     width: 200px;
  64.     }
  65. /* CSS HACK: Caio hide from NN4 since NN4's float model is all wrong */
  66. /*/*/
  67. .column-two { margin-left: 200px; }
  68. .column-three {margin-left: 700px;}
  69. /* */
  70. .column-one-content, .column-two-content, .column-three-content
  71.     {
  72.     padding: 6px;
  73.     border: none;
  74.     color: #000000;
  75.     }
  76. .column-one-content { background: #ff6666; }
  77. .column-two-content { background: #66ff66; }
  78. .column-three-content { background: #6666ff; }
  79. /* GUTTERS BETWEEN COLUMNS */
  80. .column-two-content
  81.     {
  82.     margin-left: 6px;
  83.     margin-right: 6px;
  84.     }
  85. /* HORIZONTAL PADDING OUTSIDE COLUMNS */
  86. .column-one-content { margin-left: 10px; }
  87. .column-three-content { margin-right: 10px; }
  88. /* VERTICAL PADDING ABOVE COLUMNS */
  89. .box-header
  90.     { margin-bottom: 8px; }
  91. .column_padding_after
  92.     {
  93.     height:8px;
  94.     font-size: 1px;
  95.     line-height: 0px;
  96.     clear: both;
  97.     }
  98. /* CSS HACK: position:relative needed by IE6 otherwise the header and col 2 don't show up on initial rendering - they're there but you have to minimise the window or switch to another app and back to see the full effect. But IE5(pc) doesn't like it. And nor does NN4.
  99. NB. the use of pos:rel has to go way beyond skin-deep - any nested element that needs a background colour appears to require to be be relatively positioned */
  100. /*/*/
  101. .box-wrap, .columns-float, .column-one, .column-two, .column-three, h2
  102.     { p\osition: relative; }
  103. /* */

Valid XHTML 1.0 Valid CSS Public Domain Dedication

Back to CSS index