Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Fala galera,
Bem é o seguinte eu tenho uma tabela no seguinte codigo:
<?php
include ('../config/sessao.php');
include ('../config/intro.php');
Abre_Conexao();
$query = mysql_query("SELECT * FROM os order by id_os");
$row = mysql_num_rows($query);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>SERVCOM</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="header">
<h1><?php include ("topo.html"); ?></h1>
</div>
<div id="menu"><?php include ('../menu.html'); ?>
<div id="page">
<div id="page-top">
<div id="page-bottom">
<div>
<div id="sidebar">
<?php include ('menu.html'); ?>
</div>
<div id="content">
<h1 align="center"> </h1>
<?php if ($row != 0){ ?>
<table width="520" border="1" cellspacing="0" cellpadding="0" class="tabelattl">
<tr>
<td width="45">Os n°</td>
<td width="215">Cliente</td>
<td width="160">Aparelho</td>
<td width="90">patrimonio</td>
</tr>
</table>
<?php
while ($l = mysql_fetch_array($query)){
$os = $l['os'];
$cliente = $l['cliente'];
$id_cliente = $l['cliente'];
$aparelho = $l['aparelho'];
$patrimonio = $l['patrimonio'];
$query_cliente = mysql_query("SELECT nome_cliente FROM clientes WHERE `id_cliente` = '$cliente'");
$l = mysql_fetch_array($query_cliente);
$cliente = $l['nome_cliente'];
?>
<table width="520" border="1" cellspacing="0" cellpadding="0" class="retornosimples">
<tr>
<td width="45" align="center"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$os</a>"; ?></td>
<td width="215"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$cliente</a>"; ?></td>
<td width="160"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$aparelho</a>"; ?></td>
<td width="90" align="center"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$patrimonio</a>"; ?></td>
</tr>
</table>
<?php } }else{
print '<table width="520" border="1" cellspacing="0" cellpadding="0" class="tabelattl">';
print '<tr>';
print '<td> Não existe Os para ser finalizada</td>';
print '</tr>';
print '</table>';
}?>
<h1 align="center"> </h1>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p></p>
<p> </p>
</div>
</div>
<div style="clear: both;"> </div>
</div>
</div>
</div>
<div id="footer">
<p>Copyright © 2009 Servcom. </p>
</div>
</body>
</html>
a seguinte tabela está me apresentando um problema
<table width="520" border="1" cellspacing="0" cellpadding="0" class="retornosimples">
<tr>
<td width="45" align="center"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$os</a>"; ?></td>
<td width="215"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$cliente</a>"; ?></td>
<td width="160"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$aparelho</a>"; ?></td>
<td width="90" align="center"><?php echo "<a href=\"visualizar_os.php?id=$id_cliente&os=$os\")\">$patrimonio</a>"; ?></td>
</tr>
</table>
como pode ser visto aqui /applications/core/interface/imageproxy/imageproxy.php?img=http://img411.imageshack.us/img411/8574/errotabela.jpg&key=c00ad1ae4d7869a7eaaadc4c78305639143aa5feb6a44a3d51740f7b4e20d502" alt="Imagem Postada" />
a configuração da tabela esta saindo errado "torto" mas se eu retirar a classe dele "retornosimples" a tabela fica normal todas as linhas alinhadas.
o que pode ser isso?
aqui o css
.retornosimples {
border-collapse: collapse;
border: 1px solid #333;
text-align: justify;
}
.retornosimples td {
padding: 0 5px 0 5px;
}
No aguardo de uma resposta
vlw
Carregando comentários...