Hi, I’ve been trying to make a web calculator as an exercise, used a table with some spanned cells and buttons inside them. Set the buttons to 100% on width and height, but they do not stretch out the hole cell in ff and ie.
here’s the code I used in my .css file:
[CODE]
td {
height: 35px;
width: 35px;
//border: 1px solid #ccc;
margin: 0;
}
[CODE]
#main button {
width: 100%;
height: 100%;
display: block;
float: left;
padding: 0;
margin: 0;
}
now, on the HTML file some cells are colspaned and some are rowspan. The buttons inside the colspaned cells look as intended to (stretched), but it seems like the buttons in the rowspaned cells are catching the original size of the cell (35px).