26. april 2001 - 17:44
Der er
19 kommentarer og 1 løsning
tabel
http://www.web-zone.dk/post/read.jpg se denne adr..
..nogen der kan fortælle mig HVORDAN jeg gør sådan at \"besked\" fylder hele skidtet? altså istedet for at den kun fylder halvdelen..??
Annonceindlæg fra gavdi
26. april 2001 - 17:45
#1
<table width=\'100%\' border=\'1\' bordercolor=\'#000000\' cellpadding=\'3\' cellspacing=\'0\'> <tr valign=\"left\"> <td bgcolor=\'#0080C0\' width=\"100\" height=\"2\">Afsender</td> <td bgcolor=\'#0080C0\' width=\"50\" height=\"2\">Emne:</td> <td bgcolor=\'#0080C0\' width=\"200\" height=\"2\">besked</td> <td bgcolor=\'#0080C0\' width=\"50\" height=\"2\">tidspunkt</td> <tr align=\'left\' bgcolor=\'#FFFFFF\' valign=\"top\"> <td width=\"100\" height=\"27\"><? print \"$row[afsender]\"; ?></td> <td width=\"50\" height=\"27\"><? print \"$row[emne]\"; ?></td> <td width=\"200\" height=\"27\"><? print \"$row[besked]\"; ?></td> <? $year = substr (\"$row[tid]\", 0, 4); $month = substr (\"$row[tid]\", 4, 2); $day = substr (\"$row[tid]\", 6, 2); $hour = substr (\"$row[tid]\", 8, 2); $min = substr (\"$row[tid]\", 10, 2); $sec = substr (\"$row[tid]\", 12, 2); ?> <td width=\"50\" height=\"27\"><? print \"$hour:$min:$sec $day, $month - $year\"; ?></td> </tr> </table> her er scriptet..
26. april 2001 - 17:45
#2
Må vi se koden?
26. april 2001 - 17:46
#3
tak....
26. april 2001 - 17:47
#4
Hmm...ikke testet: <table width=\'100%\' border=\'1\' bordercolor=\'#000000\' cellpadding=\'3\' cellspacing=\'0\'> <tr valign=\"left\"> <td bgcolor=\'#0080C0\' width=\"100\" height=\"2\">Afsender</td> <td bgcolor=\'#0080C0\' width=\"50\" height=\"2\">Emne:</td> <td bgcolor=\'#0080C0\' width=\"200\" height=\"2\">besked</td> <td bgcolor=\'#0080C0\' width=\"50\" height=\"2\">tidspunkt</td> </tr> <tr align=\'left\' bgcolor=\'#FFFFFF\' valign=\"top\"> <td width=\"100\" height=\"27\"><? print \"$row[afsender]\"; ?></td> <td width=\"50\" height=\"27\"><? print \"$row[emne]\"; ?></td> <td width=\"200\" height=\"27\"><? print \"$row[besked]\"; ?></td> <? $year = substr (\"$row[tid]\", 0, 4); $month = substr (\"$row[tid]\", 4, 2); $day = substr (\"$row[tid]\", 6, 2); $hour = substr (\"$row[tid]\", 8, 2); $min = substr (\"$row[tid]\", 10, 2); $sec = substr (\"$row[tid]\", 12, 2); ?> <td width=\"50\" height=\"27\"><? print \"$hour:$min:$sec $day, $month - $year\"; ?></td> </tr> </table>
26. april 2001 - 17:49
#5
ændringer?
26. april 2001 - 17:50
#6
</tr>...jeg siddder lige og tester....noget nyt
26. april 2001 - 17:51
#7
<table width=\'400\' border=\'1\' bordercolor=\'#000000\' cellpadding=\'3\' cellspacing=\'0\'> <tr valign=\"left\"> <td bgcolor=\'#0080C0\' width=\"100\" height=\"2\">Afsender</td> <td bgcolor=\'#0080C0\' width=\"50\" height=\"2\">Emne:</td> <td bgcolor=\'#0080C0\' width=\"200\" height=\"2\">besked</td> <td bgcolor=\'#0080C0\' width=\"50\" height=\"2\">tidspunkt</td> </tr> <tr align=\'left\' bgcolor=\'#FFFFFF\' valign=\"top\"> <td width=\"100\" height=\"27\"><? print \"$row[afsender]\"; ?></td> <td width=\"50\" height=\"27\"><? print \"$row[emne]\"; ?></td> <td width=\"200\" height=\"27\"><? print \"$row[besked]\"; ?></td> <? $year = substr (\"$row[tid]\", 0, 4); $month = substr (\"$row[tid]\", 4, 2); $day = substr (\"$row[tid]\", 6, 2); $hour = substr (\"$row[tid]\", 8, 2); $min = substr (\"$row[tid]\", 10, 2); $sec = substr (\"$row[tid]\", 12, 2); ?> <td width=\"50\" height=\"27\"><? print \"$hour:$min:$sec $day, $month - $year\"; ?></td> </tr> </table>
26. april 2001 - 17:51
#8
Du siger at hele tablen SKAL fylde 100% af siden...men alle cellerne lagt sammen fylder de kun 400
26. april 2001 - 17:52
#9
Ændringer: <table width=\'400\'....
26. april 2001 - 17:52
#10
ohh..ok prøver lige!
26. april 2001 - 17:53
#11
Nej..jeg vil have at den skal fylde HELE siden..
26. april 2001 - 17:53
#12
jamen, så skal du sætte cellernes vidde i %
26. april 2001 - 17:55
#13
25% 12% 50% 13%
26. april 2001 - 17:56
#14
<table width=\'400\' border=\'1\' bordercolor=\'#000000\' cellpadding=\'3\' cellspacing=\'0\'> <tr valign=\"left\"> <td bgcolor=\'#0080C0\' width=\"25%\" height=\"2\">Afsender</td> <td bgcolor=\'#0080C0\' width=\"12%\" height=\"2\">Emne:</td> <td bgcolor=\'#0080C0\' width=\"50%\" height=\"2\">besked</td> <td bgcolor=\'#0080C0\' width=\"13% height=\"2\">tidspunkt</td> </tr> <tr align=\'left\' bgcolor=\'#FFFFFF\' valign=\"top\"> <td width=\"25%\" height=\"27\"><? print \"$row[afsender]\"; ?></td> <td width=\"12%\" height=\"27\"><? print \"$row[emne]\"; ?></td> <td width=\"50%\" height=\"27\"><? print \"$row[besked]\"; ?></td> <? $year = substr (\"$row[tid]\", 0, 4); $month = substr (\"$row[tid]\", 4, 2); $day = substr (\"$row[tid]\", 6, 2); $hour = substr (\"$row[tid]\", 8, 2); $min = substr (\"$row[tid]\", 10, 2); $sec = substr (\"$row[tid]\", 12, 2); ?> <td width=\"13%\" height=\"27\"><? print \"$hour:$min:$sec $day, $month - $year\"; ?></td> </tr> </table> Sådan! Nu er forholdet det samme!
26. april 2001 - 17:57
#15
jeg fik det til at virke med 12.5% :) tak tak
26. april 2001 - 17:58
#16
well_r > måske du skulle lære html før du lærer php ? (no offense)
26. april 2001 - 18:01
#17
razor >> Det var en newbie fejl! Vidste du at ca. 90% af en prof. koders fejl er logiske...så som et manglende \" eller \' eller & osv....men kun 10% er store.... ¤x Xenophobia
26. april 2001 - 18:04
#18
yes :) - tro mig :)
26. april 2001 - 18:05
#19
razor..ey..ey..backoff..*GG*..*sprag faktisk direkte til php - kan ikke så meget HTML!* :(
26. april 2001 - 18:06
#20
kender ikke så meget til html kender sq nok 20 gange mere til php end html :)
Vi tilbyder markedets bedste kurser inden for webudvikling