Link laat tabel uitrekken.

Gestart doorMarvinn30 reacties52 weergaven

31 berichten · pagina 1 van 3

Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoii.

Hier een klein vraagje, ik heb een tabel maar als iemand nu een lange link plaatst rekt de pagina enorm uit, hoe kan ik zorgen dat de pagina niet meer uitrekt?

Misschien weten jullie hoe dat moet, bedankt alvast smile
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
overflow: scroll in het vak zetten wat tever uit rekt.
Dit heeft one2xs namelijk ook:

jkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjk
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Tnx voor je snelle reactie, alleen ik wil juist niet dat de pagina uitrekt.

Gewoon dat:

jkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjk

Onder elkaar komt:

jkasfhkjhjkjkasfhkjhjkjkasfhkjhjkj
kasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjk
jkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkj
hjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjh
jkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjk
jkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfhkjhjkjkasfh
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
overflow: hidden; volgens mij.
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Met overflow hidden laat ie gewoon niet meer zien als het te groot is.

Het is gewoon niet mogelijk voor zover ik weet. Of je moet met rare php functies gaan werken om te kijken hoe breed (in px) een zin is en hem dan zover afkappen, en vervolgens weer een nieuwe regel starten. Kortom: teveel werk.
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zie:
Afbeelding

Script:

<table cellpadding="2" bgcolor="white" border="0" style="border:1px solid black">
<tr>
<th width="230"><font size="2" face="Verdana">Browser</font></th>
<th width="100"><font size="2" face="Verdana">IP Address</font></th>
<th width="10"><font size="2" face="Verdana">Reffer Address</font></th>
<tr>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Declare file[/COLOR]
[COLOR= #0000BB]$file[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"stats.txt"[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #FF8000]// Open and check file[/COLOR]
[COLOR= #0000BB]$open[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$file[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"r"[/COLOR] [COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL] [COLOR= #007700]([/COLOR] [COLOR= #DD0000]"Operation Failed!"[/COLOR] [COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]// For each line..[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]( ![/COLOR] [URL="http://www.php.net/feof"]feof[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$open[/COLOR] [COLOR= #007700]) ) {[/COLOR]

[COLOR= #FF8000]// Seperate Values[/COLOR]
[COLOR= #0000BB]$line[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fgets"]fgets[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$open[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1024[/COLOR] [COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/print"]print[/URL] [COLOR= #0000BB]$line[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$open[/COLOR] [COLOR= #007700]);[/COLOR]
?>
</table>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Dit is mogelijk met cms en dan de px zo goed mogelijk instellen.
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het is mogelijk dat hij op de volgende regel doorgaat. Weet alleen niet meer welke...
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het is best vervelend want de hele pagina rekt uitsadley
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
overflow: auto;


Heb ik, en dat werkt goed?
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Gamedealer schreef:
overflow: auto;
Heb ik, en dat werkt goed?

Nee de pagina is nog uitgerekt cry
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat als je de width en height waardes weghaalt?

toevoeging op 19 februari 2012, 19:24:12:
Hm laat maar, das dom gelul want dat kan er niks mee te maken hebbenclown
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
wordwrap() in PHP. Tables hebben niet de functie om text te wrappen, voor zover ik weet.
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
width: 100px; op de td plaatsuh
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Aarclay schreef:
wordwrap() in PHP. Tables hebben niet de functie om text te wrappen, voor zover ik weet.
IIIIIIIIIIIIIIIIIIIIIIIII
Is niet hetzelfde als
WWWWWWWWWWWWWWWWWWWWWWWWW

Toch ziet wordwrap ze als hetzelfde. Dus dat is ook niet ideaal.
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