<style>
#table{
display:table;
}
#table div.row{
display:table-row;
}
#table div.row div{
display:table-cell;
width:100px;
text-align:right;
}
#table div.row:first-child{
color:white;
background-color:blue;
}
#table div.row:last-child{
color:white;
background-color:green;
}
#table div.row:last-child{
display:none;
}
#table div.row:hover{
display:table-row;
}
</style>
<div id='table'>
<div class='row'>
<div>CELL</div><div>CELL</div><div>CELL</div>
</div>
<div class='row'>
<div>CELL</div><div>CELL</div><div>CELL</div>
</div>
</div>
I cant get rid off to my assignment, where in, we will make a 2 rows of table where in the default view is only one row, because the last row was hidden (display:none), then when you hover the mouse in the table the second row will appear, I don’t know what is the error of my CSS?, do you think this line of CSS is the source of my error #table div.row:hover{ display:table-row;}, thank you for expaining me.