This is a simple question, I just don't know how to search for it in the web.
I have three CSS
classes: .header
, .cell
, .footer
. They look like the following:
.header
{
display:table-cell;
vertical-align:middle;
width:130px;
height:20px;
background-color: Yellow;
border: 1px solid silver;
}
.cell
{
display:table-cell;
vertical-align:middle;
width:130px;
height:85px;
background-color: Yellow;
border: 1px solid silver;
}
.footer
{
display:table-cell;
vertical-align:middle;
width:130px;
height:40px;
background-color: Yellow;
border: 1px solid silver;
}
The only difference between all these classes is the height
property. How can I simplify this code?
Thanks.