On 6/3/05, Abyss <[EMAIL PROTECTED]> wrote:
> What i would like to know is how to center that form smack in the middle of
> the page with out the use of tables...(and if possible have it centered but
> with a left align
> eg have them in the center but not all aligned center?
http://dorward.me.
Hi Abyss,
Horizontal centering can be done like this:
body {
text-align: center; /* cos older browsers need this */
}
#CntBody {
width: 500px; /* a width is required to make this work */
margin: 0 auto;
text-align: left;
}
Vertical centering with a div of variable height is trickier but this
Give the form a width, then give it "auto" left and right margins
(margin-left: auto; margin-right: auto). The CSS specification says
that a block level element with a fixed width and auto margins is to be
centered in it's containing block.
--
http://www.mozilla.org/products/firefox/ - Get F
Either margin: 0 auto; or text-align: center; should work.
Francesco
On 6/2/05, Abyss <[EMAIL PROTECTED]> wrote:
> hi all
>
> I have a question which plagues me ever since i left table layout ..its
> centering one small thing in the middle...
>
>
>
>
>
>
>
>
>
>
hi all
I have a question which plagues me ever since i left table layout ..its
centering one small thing in the middle...
What i would like to know is how to center that form smack in the middle of the
page with out the use of tables...(and if possible have it cent