tout d'abord salut a tous
Alors voila , sur un site en jsp j'ai une partie admin dans laquelle je peut editer modifier ou ajouter des infos dans mes bases , jusque la rien d'anormal.
par contre je genere mon tableau avec une boucle while , mon probleme est que j'applique a mon tableau une ligne sur deux les proprietées css suivantes:
un peut du html generé:
en fait mon probleme c'est que j'affiche un border - droite sur chaque cellule avec un border-bottom comme on peut le voir dans l'ide #labels td et je voudrais changer cette propriété pour afficher la cellules delete avec un b order-left pour fermer mon tableau , si quelqu'un a une idée ca m'aiderais.
Modifié par thedarkshaman (18 Apr 2006 - 11:26)

Alors voila , sur un site en jsp j'ai une partie admin dans laquelle je peut editer modifier ou ajouter des infos dans mes bases , jusque la rien d'anormal.
par contre je genere mon tableau avec une boucle while , mon probleme est que j'applique a mon tableau une ligne sur deux les proprietées css suivantes:
#labels
{
font: normal 11px Verdana;
}
#labels td
{
border-left: 1px solid black;
border-bottom: 1px solid black;
border-right: 0px;
padding: 2px;
}
.add {
text-align: right;
}
#modify {
background: url(img/modify.gif) no-repeat ;
}
#delete {
background: url(img/delete.gif) no-repeat ;
border-right: 1px solid black;
border-left: none;
}
#modify a
{
border: solid;
border-width: 0px;
border-color: black;
display: block;
text-decoration: none;
margin: 0px;
width: 16px;
height: 16px;
}
#delete a
{
border: solid;
border-width: 0px;
border-color: black;
display: block;
text-decoration: none;
margin: 0px;
width: 16px;
height: 16px;
}
#modify span {
font-size: 3px;
visibility: hidden;
}
#delete span {
font-size: 3px;
visibility: hidden;
border-right: 1px solid black;
}
un peut du html generé:
<html>
<head>
<meta http-equiv="Content-Type" >
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<p class="title" >Select Label</p>
<p class="add">
<input type="submit" onClick="document.location.href='labels.jsp?action=addform' ;" value="Add Label"></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%" id="labels" >
<tr class="tabtitle">
<td>Name</td><td>SearchEngineType</td><td>Page</td><td>Page</td><td> </td><td></td></tr>
<tr class="rc1">
<td>January_Long</td>
<td>1</td>
<td>CommonForAll</td>
<td>website</td>
<td width=15 id="modify"><A href="labels.jsp?action=modifyform&id=1"><span>modify</span></td><td width=15 id="delete"><A href="labels.jsp?action=delete&id=1"><span>delete</span></A></td></tr>
<tr class="rc2">
<td>February_Long</td>
<td>1</td>
<td>CommonForAll</td>
<td>website</td>
<td width=15 id="modify"><A href="labels.jsp?action=modifyform&id=2">
<span>modify</span></td>
<td width=15 id="delete"><A href="labels.jsp?action=delete&id=2">
<span>delete</span></A></td></tr>
</table>
en fait mon probleme c'est que j'affiche un border - droite sur chaque cellule avec un border-bottom comme on peut le voir dans l'ide #labels td et je voudrais changer cette propriété pour afficher la cellules delete avec un b order-left pour fermer mon tableau , si quelqu'un a une idée ca m'aiderais.
Modifié par thedarkshaman (18 Apr 2006 - 11:26)