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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
melbourne1815
Forum Newbie
Posts: 13
Joined: Wed Sep 28, 2011 4:01 am

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

Post 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
Last edited by Benjamin on Fri Dec 23, 2011 2:14 am, edited 1 time in total.
Reason: Added [syntax=php||htm||css||javascript||sql||etc] - Please use [syntax] tags when posting code in the forums! Thanks.
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

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

Post by social_experiment »

Code: Select all

table{
width:1025px;
margin-left:20px;	
border-bottom:10px solid #999;
/* try */
overflow: scroll;
}
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
melbourne1815
Forum Newbie
Posts: 13
Joined: Wed Sep 28, 2011 4:01 am

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

Post 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
Post Reply