Ir para conteúdo
Fórum Script Brasil
  • 0

(Resolvido) Linha não quebra automaticamente


Bright

Pergunta

Bom, ai está o comando, ao invez dele quebrar a linha ele expande a tabela...

<!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">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title></title>

<style type="text/css">

<!--

.style1 {

font-family: Verdana, Geneva, sans-serif;

font-size: 16px;

font-weight: bold;

color: #523030;

}

.style2 div {

font-family: Verdana, Geneva, sans-serif;

font-size: 12px;

color: #523030;

}

.textfiel {

background-color:#FFFFFF;

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

text-align: justify;

border-bottom: 1px solid #FFFFFF;

border-left: 1px solid #FFFFFF;

border-right: 1px solid #FFFFFF;

border-top: 1px solid #FFFFFF;

color: #523030;

}

a {

font-family: Verdana, Geneva, sans-serif;

font-size: 14px;

color: #523030;

}

a:link {

text-decoration: none;

}

a:visited {

text-decoration: none;

color: #523030;

}

a:hover {

text-decoration: none;

color: #F00;

}

a:active {

text-decoration: none;

color: #F00;

}

body {

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

text-align: justify;

}

-->

</style>

</head>

<body>

<table width="347" border="0" cellpadding="0" cellspacing="2" >

<tr>

<td width="347" class="style1">Notícia Completa</td>

</tr>

<tr>

<td><img src="images/image_12.png" width="344" height="12" alt="" /></td>

</tr>

<?

include('conecta.php');

$icod=$_GET['n'];

$sql="select * from noticia where cod=$icod";

$rs=mysql_query($sql,$conexao);

$info=mysql_fetch_row($rs);

?>

<tr>

<td width="347" class="style2"><div align="justify">[

<?=$info[1]?>

]</div></td>

</tr>

<tr>

<td width="347" class="style2"><div align="justify">

<?=$info[2]?></div></td>

</tr>

<tr>

<td width="347" class="style2" ><div align="justify">

<?=$info[3]?>

</div></td>

</tr>

<tr>

<td class="style2"><div align="right"><a href="not.php">[Voltar]</a></div></td>

</tr>

</td>

<tr>

<tr>

<td class="style2"><img src="images/image_12.png" width="344" height="12" alt="" /></td>

</tr>

</table>

</body>

</html>

Se alguém souber como me ajudar, por favor.

OBRIGADO!

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

Valeu galera, juntando os dois resolvi o problema, caso alguém venha a ter o mesmo...

o código arrumado:

<!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">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>RamdomRag</title>

<style type="text/css">

<!--

.style1 {

font-family: Verdana, Geneva, sans-serif;

font-size: 16px;

font-weight: bold;

color: #523030;

}

.style2 div {

font-family: Verdana, Geneva, sans-serif;

font-size: 12px;

color: #523030;

}

.textfiel {

background-color:#FFFFFF;

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

text-align: justify;

border-bottom: 1px solid #FFFFFF;

border-left: 1px solid #FFFFFF;

border-right: 1px solid #FFFFFF;

border-top: 1px solid #FFFFFF;

color: #523030;

}

a {

font-family: Verdana, Geneva, sans-serif;

font-size: 14px;

color: #523030;

}

a:link {

text-decoration: none;

}

a:visited {

text-decoration: none;

color: #523030;

}

a:hover {

text-decoration: none;

color: #F00;

}

a:active {

text-decoration: none;

color: #F00;

}

body {

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

text-align: justify;

}

-->

</style>

</head>

<body>

<table width="340" border="0" cellpadding="0" cellspacing="2" >

<tr>

<td width="341" class="style1">Notícia Completa</td>

</tr>

<tr>

<td><img src="images/image_12.png" width="340" height="12" alt="" /></td>

</tr>

<?

include('conecta.php');

$icod=$_GET['n'];

$sql="select * from noticia where cod=$icod";

$rs=mysql_query($sql,$conexao);

$info=mysql_fetch_row($rs);

$notinfo=nl2br($info[3]);

?>

<tr>

<td class="style2"><div align="justify">[

<?=$info[1]?>

]</div></td>

</tr>

<tr>

<td class="style2"><div align="justify">

<?=nl2br($info[2])?></div></td>

</tr>

<tr>

<td class="style2" ><div align="justify">

<?=wordwrap($notinfo, 37, "\n", true)?>

</div></td>

</tr>

<tr>

<td class="style2"><div align="right"><a href="not.php">[Voltar]</a></div></td>

</tr>

</td>

<tr>

<tr>

<td class="style2"><img src="images/image_12.png" width="340" height="12" alt="" /></td>

</tr>

</table>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...