# FUNNY! how i don't get this simple code now

**URL:** <https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/47370>\
**Category:** Uncategorized\
**Created:** [April 3, 2004, 1:29am UTC](https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/47370 "2004-04-03T01:29:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MTsoul](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@MTsoul](https://forum.kirupa.com/u/MTsoul)\
**Post date:** [April 3, 2004, 1:29am UTC](https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/47370/1 "2004-04-03T01:29:07Z")

</div>

Okay, this code used to work, without the

```auto
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<A href="http://www.w3.org/TR/html4/loose.dtd">[/HTML">http://www.w3.org/TR/html4/loose.dtd">

```

part.

But now, with it, It just doesn’t work

Here is the code:

```auto
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<table width="580" height="100%" border="1" cellspacing="0" cellpadding="0">
 <tr>
  <td height="100%" valign="middle" align="center">asdf</td>
 </tr>
</table>
</center>
</body>
</html>

```

Here is the otucome of the page: [http://www.motioncache.com/new\_layout\_test.htm](http://www.motioncache.com/new_layout_test.htm)

Supposedly, it’s supposed to stretch all the way down and vertically center the text. With the Doctype thingie, it just doesn’t work. :jail:

Does anyone know a solution to this?
