2
I have a table and would like to remove the spaces between the edges! How can I do this?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tabela</title>
</head>
<body>
<h1>Pesquisa no banco</h1>
<table border="1">
<thead>
<tr>
<th>Id</th>
<th>nome</th>
<th>sobrenome</th>
<th>balanço</th>
</tr>
</thead>
<tbody>
<tr> <td> id1</td>
<td> Jose</td>
<td> Fernando</td>
<td> -4000</td>
</tr>
<tr> <td> id2</td>
<td> Joaquim</td>
<td> Macedo</td>
<td> 12000</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>
Do you want to
table { border-collapse:collapse };
? Take a look here: http://jsfiddle.net/572k8Lv3/– Sergio
@Interesting Sergio! This code ,table { border-Collapse:Collapse },is a css? Called via a link to the stylesheet?
– Pena Pintada
And with border: http://jsfiddle.net/572k8Lv3/1/, that’s what you’re looking for?
– Sergio
Yes, it’s CSS. You can have it in a file external to the page or on the page inside tags
<style>
– Sergio
@Sergio Obrigado!!
– Pena Pintada