Formatting...

Soldato
Joined
26 Nov 2005
Posts
3,839
Location
Doon the Bay (Newcastle)
Hi, i've got a formatting problem.

I want a form centred, but all the things ive tried makes them go funny places.

Can i centre an entire form?

Here's where it is:

2dqmryo.jpg


MY CSS:

label
{
width: 28em;
float: centre;
text-align: left;
margin-right: 0.5em;
display: block

}

fieldset
{
border: 1px solid #00C;
width: 20em
position: center;
}

legend
{
color: #fff;
background: #666;
border: 2px solid #00C;
padding: 2px 6px
}
 
Getting it centered would be sweet though the aim would be to get it to appear directly under 'please' as it would look even better.

Is it CSS controlled or actually in the form?

Edit: nearly there:

22yzk7.jpg


<div align="center">

in the php doc wrapped around the form sorted it to that point, though i'd like to position it correctly as stated, same with the submit button, but fully align right would put it in the white and out of the page.
 
Last edited:
Back
Top Bottom