Witam! Mam tabelę taką jak poniżej. Zawartość do niej załadowana powoduje, że szerokość kolumn zmienia się i a przez to jedna z kolumn wystaje poza wyznaczony obszar. Próbowałam zmienić szerokość width="" lub style="width:" niestety nijak nie działa. Dlaczego? Proszę o pomoc
<table width="979" height="auto" border="1" align="center" style="color:191B7E;" class="gal_edit_t">
<thead>
<tr><center><form method="post">
<th class = "th" width="20px"><input type="hidden" name="id_sight" value="id_sight" /><input type="submit" value="ID" name="id" class="sort"></th>
<th class = "th"><input type="hidden" name="title" value="title" /><input type="submit" value="Nazwa Atrakcji" name="title_" class="sort"></th>
<th class = "th">Opis</th>
<th class = "th"><input type="hidden" name="tag" value="tag" /><input type="submit" value="Tag" name="sight_tag" class="sort"></th>
<th class = "th">Obrazek</th>
<th class = "th"><input type="hidden" name="name" value="name" /><input type="submit" value="Nazwa Pliku" name="name_" class="sort"></th>
<th class = "th">Opcje</th></form>
</tr></center>
</thead>
<center><tbody>
<?php
$query_disp = "SELECT * FROM sights";
if(isset($_POST['id'])){
$sort = $_POST['id_sight'];
// echo $post;
$query_disp = "SELECT * FROM sights ORDER BY id_sight ASC ";
//$resultSet = mysql_query($query_disp, $con);
}
if(isset($_POST['name_'])){
$sort=$_POST['name'];
$query_disp = "SELECT * FROM sights order by name ASC ";
//$resultSet = mysql_query($query_disp, $con);
}
if(isset($_POST['title_'])){
$sort=$_POST['title'];
$query_disp = "SELECT * FROM sights order by title ASC ";
//$resultSet = mysql_query($query_disp, $con);
}
if(isset($_POST['sight_tag'])){
$sort = $_POST['tag'];
$query_disp = "SELECT * FROM sights order by tag ASC ";
//$resultSet = mysql_query($query_disp, $con);
}
$resultSet = mysql_query($query_disp, $con);
$table ="sights";
$id_col="id_sight";
while($row = mysql_fetch_array($resultSet)) {
$id= $row['id_sight'];
$tag_=$row['tag'];
$width=$row['width'];
$height=$row['height'];
?>
</form>
<tr>
<p><form method = "post" enctype="multipart/form-data">
<td style="width:20px"><?php echo $row['id_sight'];?></td>
<td width="40px;"><center><textarea name="title" cols="20" rows="2"><?php echo $row['title'];?></textarea></td>
<td width="200px;"><center><textarea name="desc" cols="20" rows="4"><?php echo $row['description'];?></textarea></td>
<td width="20px;"><center><textarea name="edit_tag" cols="10" rows="2"><?php echo $row['tag'];?></textarea></td>
<td width="<?php echo $width; ?>"><img src="admin/load_image.php?id=<?php echo $id?>" height="<?php echo $height; ?>" width="<?php echo $width; ?>"/></td>
<td width="200px;"><center><?php echo $row['name'];?></td>
<td width="150px">
<input type="button" value="Usuń Wpis" onClick="location.href='admin/delete.php?param=<?php echo $table;?>,<?php echo $id_col;?>,<?php echo $id;?>'"><br><br>
<p><b>Zmień obrazek:</b><br>
<input type="file" name="image" cols="20" rows="1"></br>
<input type="hidden" name="id" value="<?php echo $id; ?> " />
<input type="submit" value="Zapisz" name="sav_edit" > </form></p>
</td>
</tr>
<?php } ?>
</tbody>
</center>
</table>