Topic: 2 fixed size boxes side/side, centered? |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: seattle |
posted 08-13-2003 21:02
Posted: Tue Aug 12, 2003 7:39 pm Post subject: 2 fixed size boxes centered - possible? |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-13-2003 21:12
wcr one: Why not something like: code: <body style="text-align:center;">
|
Maniac (V) Inmate From: California |
posted 08-14-2003 07:26
Emps: That wouldn't exactly work. The menu would be stacked on top of the content. There are two ways to do multicolumn layouts: absolute positioning or floating. Personally, I favor the float. code: <div id="container">
code: body {
|
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-14-2003 10:53
ozphactor: Ahh nuts yep - I missed the float bits out of the style - I just threw it together and didn't bother testing it. A corrected version is: code: <body style="text-align:center;">
|
Paranoid (IV) Inmate From: seattle |
posted 08-14-2003 19:51
thanks for the info, i will give it a try tonight. I kept missing the container div auto margins. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-14-2003 20:04
wcr one: quote:
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-15-2003 01:09
My favorite way to do multicolumn layouts is like this: |
Paranoid (IV) Inmate From: seattle |
posted 08-15-2003 07:57
fantastic! got it to work, though I had to fart around a few of the particulars to get it to work right. thanks a bunch. |
Maniac (V) Inmate From: under the bed |
posted 08-15-2003 14:37
What slime means is that you can't get two divs to expand their height equally - if you want the div's to have a fluid height, rather than setting the height to a fixed measurement. |
Maniac (V) Inmate From: California |
posted 08-15-2003 22:02
From what I've heard, CSS3 has a whole new system for dealing with multicolumn layouts. Can't wait |
Bipolar (III) Inmate From: |
posted 08-15-2003 22:21
You can also fake the height thing with background images. |