Discussion on:

1
Comments

Join the conversation!

Follow via:
RSS
Email Alert
The problem I have seen with using "float" for multi-columnar layouts is you can get one column to resize, but the other does not resize with it.

In Michael's example, when you resize the window in IE or Firefox, the silver background behind column 2 fills in underneath column one.

Workaround: Use a red colored left border (instead of padding) on column 2 the same width as column 1, and you will have 2 colums that resize in unison.

Code change:
div#two {
width: auto;
padding: 0px 10px 5px 10px;
border-left: 150px solid red;
margin: 0px;
background-color: silver;}
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.