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
melbourne1815
Forum Newbie
Posts: 13 Joined: Wed Sep 28, 2011 4:01 am
Post
by melbourne1815 » Wed Dec 21, 2011 12:04 am
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
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.
social_experiment
DevNet Master
Posts: 2793 Joined: Sun Feb 15, 2009 11:08 am
Location: .za
Post
by social_experiment » Wed Dec 21, 2011 1:24 am
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
Post
by melbourne1815 » Thu Dec 22, 2011 9:26 pm
tnks
i have tried it and it works
...
but would it be possible to show all the lines but also doesn't overflow? tnks