xhtml question.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
hi all,
 suppose i have the following XHTML doc.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<html xmlns="http://www.w3.org/1999/xhtml " lang="en" xml:lang="en">
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />

<table align="center" width="100%" height="100%">
 <td valign="middle" align="center">

If the "DOCTYPE" tag is *not* present, the word "hello" will be in the
middle of the page
(because of the "height" attribute in the "table" element)

But in XHTML, the "table" element does not allow "height" attribute, what
should i do in order to display the
word "hello" in the middle of the page? I need a method that is compatible
with transitional XHTML and
also compatible with previous HTML versions.

Re: xhtml question.

 Bern wrote:

Quoted text here. Click to load it

html,body,table { height:100%; }

Toby A Inkster BSc (Hons) ARCS
Contact Me  ~ http://tobyinkster.co.uk/contact

Re: xhtml question.

Quoted text here. Click to load it

Nor does HTML.

Site Timeline