Topic: 2 fixed size boxes side/side, centered? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: seattle |
![]() 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 |
![]() wcr one: Why not something like: code: <body style="text-align:center;">
|
Maniac (V) Inmate From: California |
![]() 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 |
![]() 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 |
![]() 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 |
![]() wcr one: quote:
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() My favorite way to do multicolumn layouts is like this: |
Paranoid (IV) Inmate From: seattle |
![]() 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 |
![]() 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 |
![]() From what I've heard, CSS3 has a whole new system for dealing with multicolumn layouts. Can't wait |
Bipolar (III) Inmate From: |
![]() You can also fake the height thing with background images. |