Jump to content

Recommended Posts

Posted

Boas pessoal,

Como posso colocar um scroll vertical dentro de uma tabela??

<table border="inset" width="600" height="120" overflow="auto" ><tr>
<center>
<td BGCOLOR="darkorange"> 
<P ALIGN="right"> <a href="http://localhost/ListarClientes.php"> Listar todos os clientes </a></P ALIGN="right">

<form name="formularioPesquisa"  method="POST" action="http://localhost/ConsultarClientes.php">
<blockquote>

<label for="pesquisa"><font  size="5" SCROLL="no">Nome:</font></label>
<input class="textbox"type="text" name="Nome">
<input type="submit" value="Pesquisar" class="botao" name="Guardar" />
</br></blockquote>
</form>
</tr>
</table>
Posted

mostra o codigo atual, eu ate fui testar para garantir q funciona...


       <style type="text/css">
table{
   display:block;
   overflow-y:scroll;
}
   </style>

<table border="inset" width="600" height="120" class="table" ><tr>
<center>
<td BGCOLOR="darkorange"> 
<br>

<form name="formularioPesquisa"  method="POST" action="http://localhost/Gestao_Empresarial/AlterarClientes.php">
<blockquote>
<label for="pesquisa"><font  size="5">Nome:</font></label>
<input class="textbox"type="text" name="Nome">
<input type="submit" value="Alterar" class="botao" name="Guardar" />
</br></blockquote>
</form>
</tr>
</table>  
Posted (edited)

primeiro, esse html ta todo incorrecto!

br's dentro da tabela, abres um td, e fechas um tr...

a estrutura base de uma tabela é:

<table>
<tr> <!-- inicia uma linha -->
	<td>  <!-- inicia celula -->
	</td>  <!-- finaliza celula -->
</tr> <!-- acaba uma linha -->
</table>

e desde que de disseram isto, tornou.se muito mais facil escrever o codigo de uma tabela sem ter q ir ver noutro lado:

tr = table row (linha de tabela)

td = table data (cria uma celula na linha)

depois tens outras, que nao sao obrigatorias, mas recomendaveis:

<thead></thead> = para definir linha de cabeçalho (para o nome das colunas)

<tbody></tbody> = aqui fica os dados

<tfooter></tfooter> = para definir linha de rodapé (para os totais, p.exmplo)

Edited by I-NOZex

B2R » Beat2Revolution v3.0b | Regista e divulga-nos

beat2revolution.net
Posted

primeiro, esse html ta todo incorrecto!

br's dentro da tabela, abres um td, e fechas um tr...

a estrutura base de uma tabela é:

<table>
<tr> <!-- inicia uma linha -->
	<td>  <!-- inicia celula -->
	</td>  <!-- finaliza celula -->
</tr> <!-- acaba uma linha -->
</table>

e desde que de disseram isto, tornou.se muito mais facil escrever o codigo de uma tabela sem ter q ir ver noutro lado:

tr = table row (linha de tabela)

td = table data (cria uma celula na linha)

depois tens outras, que nao sao obrigatorias, mas recomendaveis:

<thead></thead> = para definir linha de cabeçalho (para o nome das colunas)

<tbody></tbody> = aqui fica os dados

<tfooter></tfooter> = para definir linha de rodapé (para os totais, p.exmplo)

E não dá para colocar o scroll como tenho??

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.