Jump to content
php.lv forumi

tabule 100%


Rich Bitch

Recommended Posts

es taisu ar tabulaam shaadi:

<table cellspacing="0" cellpadding="0" width="100%" height="100%" border="0">
<tr><td height="250px;">bla, bla</td></tr>
<tr><td height="240px;">bla, bla</td></tr>
<tr><td>bla, bla</td></tr>
</table>

man vajag lai 3 rinda raadiitos augstumaa 100%-250px-240px plata. uz FF viss normaali, bet uz IE visas raadaas vienaadi augstas. kaa man panaakt manis veelamo rezultaatu?

Edited by Rich Bitch
Link to comment
Share on other sites

Nu nemaak IE6 reekjinaat augstumu.

Var kkaa taa vinju apmaaniit:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title>Table Height</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
html, body, #wrapper{
  height:100%;
  margin:0;
  padding:0;
  border:none;
  text-align:center}
  #wrapper{
  margin:0 auto;
  text-align:left;
  width:600px}
   #wrapper td{
	  background:#FCC;
	  vertical-align:top}
</style>
</head>
<body>
<table id="wrapper" cellspacing="1" cellpadding="0" border="0">
	<tr>
		 <td>
			 <table cellspacing="1" cellpadding="0" border="1" style="width:100%">
				<tr>
					<td style="height:150px">
						dd
					</td>
				</tr>
				<tr>
					<td style="height:240px">
						dd
					</td>
				</tr>
			</table>
			<p>leja</p>
		</td>
	  </tr>
   </table>
</body>
</html>

 

Bet vispaar lieto div !

Edited by Evi
Link to comment
Share on other sites

×
×
  • Create New...