Jump to content
  • 0

XHTML и 100%-ная высота таблиц.


maleficmax
 Share

Question

Собственно, я полагаю вопрос многим ясен, но я таки обьясню... Существует эта страничка, которая в HTML тянется в высоту за счет средней ячейки (ряда). Однако, на станице я применяю меню, которое требует XHTML. И тут начинаются проблемы. Ячейка НЕ ТЯНЕТСЯ в XHTML!!!!!! И никак я не могу этому помочь! ((( По крайней мере пока что...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>
XXXXXXXXXX
</title>
<meta http-equiv="Content-Type" content="text/html; charset=cp1251" />

<style type="text/css">
body {
height: 100%;
margin: 0 0 0 0; }
.stretch {
height: 100%;
width: 100%;
border-collapse: collapse;}
.stretch tr td {
border: 1px solid #000;}

</style>

</head>


<body>

<table class="stretch">
<tr height="50">
<td width="20%"></td>
<td width="60%"></td>
<td width="20%"></td>
</tr>
<tr>
<td> </td>
<td>I WANT TO STRETCH!!!!!!!!!!!!</td>
<td> </td>
</tr>
<tr height="50">
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>

</body>


</HTML>

Если кому-то известен ответ, произнесите его плиз!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy