# 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/106184>\
**Category:** Uncategorized\
**Created:** [April 3, 2004, 1:29am UTC](https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/106184 "2004-04-03T01:29:07Z")\
**Posts on this page:** 5\
**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/106184/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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 6, 2004, 4:05pm UTC](https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/106184/2 "2004-04-06T16:05:59Z")

</div>

Tables are really the way to go if you truly plan your site. But as browsers mature more and DIV layouts are popping up. But I always go with tables. Consider it like a scaffolding for a house. BUt you do have to plan well. But your doc type has everything to do with how your web page is interpreted by the browser. That is if I understand what is being asked. Anything can be done with tables, and frames are not always bad either.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 6, 2004, 4:42pm UTC](https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/106184/3 "2004-04-06T16:42:12Z")

</div>

> [@DDD](#):
>
> Tables are really the way to go if you truly plan your site. But as browsers mature more and DIV layouts are popping up.

That’s not true. If you have a CSS based layout and a table based layout that look exactly the same, the CSS layout is virtually always lighter, more accessible, easier to maintain, and better for people with PDAs.

Take a look at [http://alistapart.com](http://alistapart.com) - there are many good articles on CSS based layouts and XHTML. MM’s DevCenter has some decent articles as well 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 11, 2004, 8:40pm UTC](https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/106184/4 "2004-06-11T20:40:42Z")

</div>

I still say tables are the way to go. I do use div layouts also. But I find that a well planned table layout is less problematic. And you can still contrl them with css. But to each his own.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 11, 2004, 9:23pm UTC](https://forum.kirupa.com/t/funny-how-i-dont-get-this-simple-code-now/106184/5 "2004-06-11T21:23:19Z")

</div>

> [@DDD](#):
>
> I still say tables are the way to go. I do use div layouts also. But I find that a well planned table layout is less problematic. And you can still contrl them with css. But to each his own.

i agree but frames IMO are a nono
