Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML]Tło i tekst, Problem z rozmieszczeniem tekstu.
melonito
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 13.10.2008

Ostrzeżenie: (0%)
-----


Witam

Wykonałem tabelke z tłem i tekstem. W tabelce znajdują się dwie komórki KLIK. W jednej komórce będa się znajdowały nagłówki newsów, a w drugiej data. W komórkach tekst nie rozkłada się prawidłowo względem tła KLIK. Co zrobić aby tekst był dopasowany do pól na tle ?

Kod html tabelki:
Kod
<td width="268" height="90" border="0" cellpadding="0" cellspacing="0"><table width="268" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/lastnews1.gif" width="197" height="90" valign="top">dfdfddsfddssffsd<br>fdhnhfvf<br>12345<br>eloeloelo<br>elo  eloeleo<br>hejehj</td>
<td background="images/lastnews2.gif" width="71" valign="top">ddfdfdffdfdf<br>ffggdfggffgf</td></tr></table></td>


Pliki tła:
1
2

Ten post edytował melonito 13.10.2008, 13:57:58
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
melonito
post
Post #2





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 13.10.2008

Ostrzeżenie: (0%)
-----


Dwa pliki odpowiadają za wygląd nagłówków np. ostatnie mecze.

CODE
/*
<?php
/*
########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2006 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
########################################################################
*/

$ergebnis=safe_query("SELECT * FROM ".PREFIX."clanwars ORDER BY date DESC LIMIT 0,$maxresults");
echo'';
while($ds=mysql_fetch_array($ergebnis)) {

$date=date("d.m", $ds[date]);
$homescr=array_sum(explode("||", $ds[homescore]));
$oppscr=array_sum(explode("||", $ds[oppscore]));

if($homescr>$oppscr) $result=''.$homescr.':'.$oppscr.'';
elseif($homescr<$oppscr) $result=''.$homescr.':'.$oppscr.'';
else $result=''.$homescr.':'.$oppscr.'';

$resultID=$ds[cwID];
$gameicon="images/games/";
if(file_exists($gameicon.$ds[game].".gif")) $gameicon = $gameicon.$ds[game].".gif"; else $gameicon = $gameicon.$ds[game].".jpg";

eval ("\$results = \"".gettemplate("results")."\";");
echo $results;
}
echo'';
?>


i templates (plik html)
CODE
<tr>
<td>
<img src="$gameicon" border="0" width="13" height="13"> <a href="index.php?site=clanwars_details&cwID=$resultID">$date: $ds[opptag] - <b>$result</b></a>
</td>
</tr>


Ten ostatni post wydaje mi się że byłby rozwiązaniem mojego problemu. Który plik edytować? Czy może ktoś podać gotowe rozwiązanie ?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 19:08