Thursday, 22 August 2013

fill cell completely when there are paddings

fill cell completely when there are paddings

I want to fill background color for table cell. The cell have padding,
therefore the cell not filled completely. This is DEMO. For example, the
second cell in the first row.
This is my styles:
.named-schedule-table td {
border-width: 1px 0 0 1px;
vertical-align: top ;
text-align: center ;
border-style: solid;
line-height: 1.6em;
overflow: hidden;
padding: 0.4em 0.6em;
text-overflow: ellipsis;
vertical-align: middle;
}
.appearance {
background: none repeat scroll 0 0 #CFDDEE;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
cursor: pointer;
margin: 3px 1px 3px 1px;
height: 25px;
line-height: 25px;
text-align: center;
}
.current-day {
background-color: #FCF8E3
}

No comments:

Post a Comment