Re: XHTML 1.1 and Forms
by "Darrell King" <darrell(at)webctr.com>
|
| Date: |
Tue, 3 Jun 2003 09:02:04 -0400 |
| To: |
"John Hornbuckle" <john.hornbuckle(at)taylor.k12.fl.us>, <hwg-techniques(at)hwg.org> |
| References: |
fl |
| |
todo: View
Thread,
Original
|
|
----- 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
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.