ورود

View Full Version : سوال: مشکل در اندازه table



DR.HTML
جمعه 31 تیر 1390, 10:42 صبح
سلام ممن تازه دارمم شروع میکنم htmlo اما بر به یه مشکل خوردم توی تیبلها توی سورسی که الان میزارم میبنید که اصلا اندازه اون چیزی نیست که من نوشتم و نمیدونم چشه

ضمنن در اینده از Div استقاده کنم اما خوب اینم بلد باشیم بد نیست اینم کد میشه بگید چرا اندازها درست نیست سورس رو ببینید متوجه میشید

<html>
<body bgcolor="#ffffff">
<table border="4px" bgcolor="#C6BEBE">

<!--head page-->
<tr width="800px" height="300px">
<td width="800px">
<a href="#"><h1>title</h</a>
</td>
</tr>
<tr height="900px">
<td width="190px"><b>left sidebar</b></td>
<td width="390px"><u>centerpage</u></td>
<td width="190px"><b>right sidebar</b></td>
</tr>
<tr width="800px" height="200">
<td width="790px">
&copy; by a.a
</td>
</tr>
</body>
</html>
اگر کدم ران کنید میفهمید چی میگم ممنون میشم راهنمایی کنید

ghasemweb
یک شنبه 02 مرداد 1390, 23:56 عصر
شما باید از خصوصیت کول اسپن استفاده کنید که سه تا سلول رو به صورت افقی با هم تلفیق میکنه کد زیر رو تست کنی متوجه میشی


<html>
<body bgcolor="#ffffff">
<table border="4px" bgcolor="#C6BEBE">

<!--head page-->
<tr width="800px" height="300px">
<td width="800px" colspan="3">
<a href="#"><h1>title</h</a>
</td>
</tr>
<tr height="900px">
<td width="190px"><b>left sidebar</b></td>
<td width="390px"><u>centerpage</u></td>
<td width="190px"><b>right sidebar</b></td>
</tr>
<tr width="800px" height="200">
<td width="790px" colspan="3">
&copy; by a.a
</td>
</tr>
</body>
</html>