RE: XHTML 1.1 and Forms

by "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>

 Date:  Thu, 3 Jul 2003 11:58:49 -0400
 To:  <hwg-techniques(at)hwg.org>
 In-Reply-To:  DGK
  todo: View Thread, Original
By the way... I was able to get the form centered without using DIV. I used
<form style="text-align:center" blah blah blah>. It validates, so I assume
this is okay.




John  

-----Original Message-----
From: owner-hwg-techniques(at)hwg.org [mailto:owner-hwg-techniques(at)hwg.org] On
Behalf Of Darrell King
Sent: Tuesday, June 03, 2003 9:02 AM
To: John Hornbuckle; hwg-techniques(at)hwg.org
Subject: Re: XHTML 1.1 and Forms

----- Original Message -----
>From: "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>


>Well, I thought that might be the case. But I want the form centered on the
>page, and I thought the only way to center something was by putting it in a
>centered paragraph. Is there another method?


Sure....:).


In XHTML you would use CSS:

1) In your stylesheet:

.form-container {
 text-align: center;
}


2) ...then, in your HTML:

<div class='form-container'>

<form ... >

</form>

</div><!-- close form-container -->


-----------

Alternatively (but not as future-compatible):

<div style='text-align: center'>

...centered content here...

</div>


-----------

Older, deprecated method (not recommended):

<div align='center'>

...centered content here...

</div>


------------

Very old, presented for historical illustration only:

<center>

...centered content here...

</center>


D

----- Original Message -----
From: "John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>
To: <hwg-techniques(at)hwg.org>
Sent: Tuesday, June 03, 2003 8:10 AM
Subject: RE: XHTML 1.1 and Forms


Well, I thought that might be the case. But I want the form centered on the
page, and I thought the only way to center something was by putting it in a
centered paragraph. Is there another method?


John


-----Original Message-----
From: owner-hwg-techniques(at)hwg.org [mailto:owner-hwg-techniques(at)hwg.org] On
Behalf Of rudy
Sent: Monday, June 02, 2003 6:23 PM
To: hwg-techniques(at)hwg.org

> http://www.taylor.k12.fl.us/new/employees/technology/support/work.order/
>
> The validator says:
>
> Line 83, column 56: document type does not allow element "form" here;
> missing one of "map", "object", "ins", "del", "noscript" start-tag

ye cannot put a form (block element) inside a paragraph


rudy
http://r937.com/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA