Problem with html table
-
I have html table with input text cells. I tryed with cellspacing and cellpadding, padding and nothing works. I am trying to put cell together so there wouldn't be any space between them. Here is image how it looks now. What else can i try?
-
I have html table with input text cells. I tryed with cellspacing and cellpadding, padding and nothing works. I am trying to put cell together so there wouldn't be any space between them. Here is image how it looks now. What else can i try?
Perhaps something like this?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
td{
text-align:center;
color: red;
font-weight: bold;
font-style: italic;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
background-color: #EEE;
border-top: 1px solid darkgray;
border-left: 1px solid darkgray;
border-bottom: 1px solid white;
border-right: 1px solid white;
width: 32px;
}
td input{
width: 100%;
background-color: #eee;
border: none;
}
table{
border: 2px solid black;
}
</style>
</head><body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="text"/></td>
<td>1</td>
<td>3</td>
</tr>
<tr>
<td>6</td>
<td><input type="text"/></td>
<td>4</td>
</tr>
<tr>
<td>2</td>
<td>9</td>
<td>5</td>
</tr>
</table>
</body>
</html>