Tabel in echo

Gestart doorFrozenflame8 reacties15 weergaven

9 berichten · pagina 1 van 1

Frozenflame

Lid · Topicstarter

Berichten
1.561
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Momenteel ben ik bezig met het opfrissen van mijn ticketsysteem. Nu heb ik een klein probleempje. De tekst die gaat gewoon door. Hij begint dus niet op een nieuwe regel. Op de screen zie je hoe het er nu uit ziet. Wie kan me helpen om het goed te krijgen? De tabel moet eerder eindigen. Nu is hij te breed.
Afbeelding

echo "<p> 
";
                            echo "<table id="forumboard"> 
";
                            echo "<tr class="dark"> 
";
                            echo "<td rowspan="3" class="info" valign="top"> 
";
                            echo "<div style="text-align: center;"> 
";
                            echo "<strong><a href="._ROOT_."profile/".IdNaarNaam($rFetch[tDoor]).">".print_username(IdNaarNaam($rFetch[tDoor]))."</a></strong> 
";
                            echo "<img src="http://www.coverpaleis.nl/images/support.png" alt="Support"/> 
";
                            echo "</td> 
";
                            echo "<td class="px-td" width="80%"> 
";
                            echo "<p>".$tFetch[tOnderwerp]." - Geplaatst op: ".$rFetch[tDatum]."</p> 
";
                            echo "</td> 
";
                            echo "</tr> 
";
                            echo "<tr class="dark"> 
";
                            echo "<td class="mid-ding" valign="top" colspan="2"> 
";
                            echo "<p>".nl2br(htmlentities($rFetch[tBericht]))."</p> 
";
                            echo "</td> 
";
                            echo "</tr> 
";
                            echo "</table> 
";
                            echo "</p> 
";
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
witdh="xxpx" erbij zetten?!
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
padding-left: 10px; padding-right: 10px; in je content te zetten.
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
padding-left: 10px; padding-right: 10px; in je content te zetten.
daar wordt dat grijze vlak niet minder lang door. Je zet alleen de tekst 10px vanaf de linker- en rechterkantlijn.
Zoals xjessex zegt, de width moet goed gezet worden lijkt me, misschien handig om ook de css erbij te zetten bv van .mid-ding?
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maar hij wilt het toch niet tegen de kantlijn hebben, dan klopt het wat ik deed wel.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Een width erbij zetten is ook handig smile.
0
Frozenflame

Lid · Topicstarter

Berichten
1.561
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dit is het enige uit de css met .mid-ding. De forumreacties staan wel goed.

div#main div#container div#container-content table#forumboard td.mid-ding a,
div#main div#container div#container-content table#forumboard td.mid-ding a:hover,
div#main div#container div#container-content table#forumboard td.mid-ding a:visited,
div#main div#container div#container-content table#forumboard td.mid-ding a:link,
div#main div#container div#container-content table#forumboard td.mid-ding a:active {
    text-decoration: underline;
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
Maar hij wilt het toch niet tegen de kantlijn hebben, dan klopt het wat ik deed wel.
nee hij wil de tabel eerder laten beëindigen toch?

Maar met dat .mid-ding schieten we niks op winkheb je een screen hoe je forum eruit ziet dan, omdat je zegt dat het daar wel goed staat.
0
Frozenflame

Lid · Topicstarter

Berichten
1.561
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Klopt ja. Hij moet eerder beëindigt worden. Nu loopt de tekst gewoon door.
Afbeelding

<tr class="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$kleur[/COLOR][COLOR= #007700];[/COLOR] ?>">
                                        <td class="mid-ding" valign="top" colspan="2">
[COLOR= #0000BB]<?php[/COLOR]
                                                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]is_auth[COLOR= #007700]([/COLOR][COLOR= #DD0000]manage_forum[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$uLev[/COLOR][COLOR= #007700]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]reported[/COLOR][COLOR= #007700]]) && ([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]reported[/COLOR][COLOR= #007700]] >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]))
                                                {[/COLOR]
                                                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div style="color: #FFF; background: #990000; width:100%; margin: 0;text-align: center;"><strong><a style="color: #FFF;" href="[/COLOR] [COLOR= #007700].[/COLOR] _ROOT_ [COLOR= #007700].[/COLOR] [COLOR= #DD0000]reports">Deze post heeft [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]reported[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000] onbeantwoorde report[/COLOR][COLOR= #007700]. ([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]reported[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR] [COLOR= #007700]?[/COLOR] [COLOR= #DD0000][/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000]s[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]!</a></strong></div><br />[/COLOR][COLOR= #007700];
                                                }[/COLOR] 
                                                [URL="http://www.php.net/echo"]echo[/URL] parseubb[COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PostText[/COLOR][COLOR= #007700]]);[/COLOR]
                                                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/is_null"]is_null[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]editor[/COLOR][COLOR= #007700]]))
                                                {[/COLOR]
?>
                                                    <br /><br /><br /><em>Laatst bewerkt door <a href="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] _ROOT_ [COLOR= #007700].[/COLOR] [COLOR= #DD0000]profile/[/COLOR] [COLOR= #007700].[/COLOR] print_username[COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]editor[/COLOR][COLOR= #007700]]);[/COLOR] ?>"><span style="color: [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]editor_col[/COLOR][COLOR= #007700]];[/COLOR] ?>;">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] print_username[COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]editor[/COLOR][COLOR= #007700]]);[/COLOR] ?></span></a> op [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]j[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/strtotime"]strtotime[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PostEditDate[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000] [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$aDates[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]M[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/strtotime"]strtotime[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PostEditDate[/COLOR][COLOR= #007700]]))].[/COLOR][COLOR= #DD0000] [/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y, G:i:s[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/strtotime"]strtotime[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$post[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PostEditDate[/COLOR][COLOR= #007700]]));[/COLOR] ?>.</em>
[COLOR= #0000BB]<?php[/COLOR]
                                                [COLOR= #007700]}[/COLOR]
?>
                                        </td>
                                    </tr>
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren