Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prototyping...
Faking a two-column layout
#17
Quote:2) Is there any way at all I can get two columns in the content section under both IE and Firefox without resorting to tables?
This is supposed to work in all modern browsers (I use it on a couple of my FAQ pages), but I haven't looked at it under IE:


first half of content goes here

second half of content goes here



The first part creates a "floating" box that sits on the left-hand 49% of the page.

The second part creates a "floating" box that sits on the right-hand 49% of the page.

You'll need to play with the content a bit to get the two columns balanced.

That last "br" line is important - without it, the content following the floating boxes in your HTML would be squeezed into the 2% of the page between those two floating boxes.

Edit: If the browser doesn't support CSS, the layout "degrades" to the one-column display you have now...

 
--
Rob Kelk
"Governments have no right to question the loyalty of those who oppose
them. Adversaries remain citizens of the same state, common subjects of
the same sovereign, servants of the same law."

- Michael Ignatieff, addressing Stanford University in 2012
Reply


Messages In This Thread
Prototyping... - by Bob Schroeck - 01-29-2008, 08:30 PM
[No subject] - by Bob Schroeck - 01-30-2008, 03:57 AM
[No subject] - by Morganite - 01-30-2008, 07:27 AM
[No subject] - by CattyNebulart - 01-30-2008, 11:19 AM
[No subject] - by Bob Schroeck - 01-30-2008, 04:17 PM
[No subject] - by Bob Schroeck - 01-30-2008, 04:19 PM
[No subject] - by CattyNebulart - 01-30-2008, 05:15 PM
[No subject] - by Bob Schroeck - 01-30-2008, 08:57 PM
[No subject] - by CattyNebulart - 01-30-2008, 09:51 PM
[No subject] - by Bob Schroeck - 01-31-2008, 02:13 AM
[No subject] - by sweno - 01-31-2008, 04:37 AM
[No subject] - by Bob Schroeck - 01-31-2008, 07:10 AM
[No subject] - by sweno - 01-31-2008, 10:23 AM
[No subject] - by Bob Schroeck - 01-31-2008, 04:24 PM
[No subject] - by Bob Schroeck - 02-04-2008, 08:56 PM
[No subject] - by Morganite - 02-05-2008, 01:25 AM
Faking a two-column layout - by robkelk - 02-05-2008, 03:29 AM
[No subject] - by Morganite - 02-05-2008, 04:05 AM
[No subject] - by Bob Schroeck - 02-05-2008, 06:11 AM
[No subject] - by Morganite - 02-05-2008, 08:29 AM
[No subject] - by Bob Schroeck - 02-05-2008, 03:48 PM
Re:Prototyping - by Wolff - 02-05-2008, 04:33 PM
[No subject] - by Bob Schroeck - 02-05-2008, 08:42 PM
[No subject] - by Bob Schroeck - 02-06-2008, 04:22 AM
[No subject] - by Morganite - 02-06-2008, 05:15 AM
[No subject] - by robkelk - 02-06-2008, 05:17 AM
[No subject] - by Bob Schroeck - 02-06-2008, 03:49 PM
[No subject] - by Bob Schroeck - 02-07-2008, 02:49 AM
[No subject] - by Morganite - 02-07-2008, 03:53 AM
[No subject] - by Bob Schroeck - 02-07-2008, 03:33 PM
[No subject] - by bmull - 02-09-2008, 09:00 AM
[No subject] - by Bob Schroeck - 02-13-2008, 08:51 PM
Let's Try This Again - by Bob Schroeck - 02-13-2008, 08:57 PM
re: Let's Try This Again - by Bob Schroeck - 02-14-2008, 03:55 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)