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

column one

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 two

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: 0px;
  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.     width: 775px;
  22.     }
  23. .box-header
  24.     {
  25.     color: #000000;
  26.     background: #996699;
  27.     margin: 0px;
  28.     padding: 0.5em;
  29.     border: none;
  30.     }
  31. h1 { margin: 0px; }
  32. h2
  33.     {
  34.     font-size: 1em;
  35.     color: #ffffff;
  36.     background-color: #000000;
  37.     margin: 0px 0px 0.5em 0px;
  38.     padding: 0.25em;
  39.     }
  40. .box-footer
  41.     {
  42.     background: #999966;
  43.     padding: 0.5em;
  44.     clear: both;
  45.     border: none
  46.     }
  47. /* ====================================================================
  48. COLUMNS LAYOUT
  49. -------------------------------------------------------------------- */
  50. .columns-float
  51.     {
  52.     float: right;
  53.     width: 655px;
  54.     }
  55. .column-one
  56.     {
  57.     float: left;
  58.     width: 493px;
  59.     }
  60. /* CSS HACK: Caio hide from NN4 since NN4's float model is all wrong */
  61. /*/*/
  62. .column-two { margin-left: 493px; }
  63. .column-three {margin-right: 655px;}
  64. /* */
  65. .column-one-content, .column-two-content, .column-three-content
  66.     {
  67.     padding: 6px;
  68.     border: none;
  69.     color: #000000;
  70.     }
  71. .column-one-content { background: #ff6666; }
  72. .column-two-content { background: #66ff66; }
  73. .column-three-content { background: #6666ff; }
  74. /* VERTICAL PADDING ABOVE COLUMNS */
  75. .box-header
  76.     { margin-bottom: 10px; }
  77. .column_padding_after
  78.     {
  79.     height:10px;
  80.     font-size: 1px;
  81.     line-height: 0px;
  82.     clear: both;
  83.     }
  84. /* 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.
  85. 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 */
  86. /*/*/
  87. .box-wrap, .columns-float, .column-one, .column-two, .column-three, h2
  88.     { p\osition: relative; }
  89. /* */

Valid XHTML 1.0 Valid CSS Public Domain Dedication

Back to CSS index