PHP beginner |
|
ik weet niet of het meogelijk si maar kan ik niet een class, de borders dus toepassen op de <tr>?
heb volgende code:
<link href="style.css" rel="stylesheet" type="text/css">
<table width="100%">
<?php
include('config.php');
$query=mysql_query("SELECT*FROM knieuws");
while($nieuws=mysql_fetch_assoc($query)){
?>
<tr class="row1"><td width="75%" align="left"><?=$nieuws['titel'] ?></td><td width="25%" align="right"><?=$nieuws['datum'] ?></td></tr>
<tr ><td colspan="2"><?=$nieuws['memo'] ?></td></tr>
<?php
}
?>
</table>
<link href="style.css" rel="stylesheet" type="text/css"> <table width="100%"> <?php include('config.php'); ?> <tr class="row1"><td width="75%" align="left"><?=$nieuws['titel'] ?></td><td width="25%" align="right"><?=$nieuws['datum'] ?></td></tr> <tr ><td colspan="2"><?=$nieuws['memo'] ?></td></tr> <?php } ?> </table>
en de css:
table{
padding: 0px;
border: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
margin: 0px;
font-size: 9pt;
}
tr.row1{
border-bottom-style:dashed;
border-width: 1px;
border-right-style:solid;
border-left-style:solid;
border-top-style:solid;
border-color:#999999;
}
table{ padding: 0px; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; margin: 0px; font-size: 9pt; } tr.row1{ border-bottom-style:dashed; border-width: 1px; border-right-style:solid; border-left-style:solid; border-top-style:solid; border-color:#999999; }
|