Page 1 of 1

text overflow, CSS bug?? pls help...

Posted: Wed Dec 21, 2011 12:04 am
by melbourne1815
i have a problem when posting on my forums...
when i post something the text always seems to overflow the div or the actual table...

this is the code

Code: Select all

<table style="table-layout:fixed;">
<tr>
<th style="font-size:36px;text-align:left;"><strong><? echo $rows['topic']; ?></strong></th>
</tr>
<tr>
<th style="text-align:left"><strong>Date/time : </strong><? echo $rows['datetime']; ?></th>
</tr>

<tr>
<td style="text-align:left"><? echo $rows['detail']; ?></td>
</tr>

<tr>
<td style="text-align:left"><strong>By :</strong> <? echo $rows['username']; ?></td>
</tr>
</table>

and the css
table{
	width:1025px;
	margin-left:20px;	
	border-bottom:10px solid #999;
}
tr th{
	background-color:#FF6;
	border-bottom:1px solid #000;
	border-left:1px solid #000;
	border-right:1px solid #000;
	width:800px;
}
tr td{
	border-bottom:1px solid #000;
	border-left:1px solid #000;
	border-right:1px solid #000;
	background-color:#6F9;
	width:800px;
	line-height:normal;
	}
plss help i really need it...tnks :D

Re: text overflow, CSS bug?? pls help...

Posted: Wed Dec 21, 2011 1:24 am
by social_experiment

Code: Select all

table{
width:1025px;
margin-left:20px;	
border-bottom:10px solid #999;
/* try */
overflow: scroll;
}

Re: text overflow, CSS bug?? pls help...

Posted: Thu Dec 22, 2011 9:26 pm
by melbourne1815
tnks :D
i have tried it and it works :D ...

but would it be possible to show all the lines but also doesn't overflow? tnks