![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
+----+ +-------+ | |div2| | div3 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +----+ | | | +-------+ | +---------------------------+ |
|
+----+ +-------+ | |div2| | div3 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +----+ | | | +-------+ | +---------------------------+ |
|
+----+ +-------+ | |div2| | div3 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +----+ | | | +-------+ | +---------------------------+ |
#2
| |||
| |||
|
|
I'd like to get a couple of divs centered in a container (let's say the container is a td, but it could also be a div). I'd like to know how to center them within their container, instead: |
|
It would also be nice to know (if it is even possible) how to automatically distribute them: |
#3
| |||
| |||
|
|
I'd like to know how to center them within their container, instead: [...] If div2 and div3 have known widths put another div around them with |
|
It would also be nice to know (if it is even possible) how to automatically distribute them: [...] This could work with #div2, #div3 {margin-left:auto;margin-right:auto;} |
![]() |
| Thread Tools | |
| Display Modes | |
| |