In my ASP GridView, I am trying to display a table with a fixed number of lines in each TD element. To achieve this, I have decided to place a div inside each TD so that I can customize the height and layout.
table.XDataGridView td div.inner-table-div {
height: 32px;
padding: 1px;
overflow: hidden;
display: block;
}
.rfTaskExecutionWrapper td {
min-width: 100px;
font-size: 12px;
}
https://i.stack.imgur.com/nBQB6.png
I want the content in both columns to be vertically aligned in the center and only show 2 or 3 lines of text maximum. Even though I have set a limited height, I am still seeing some text from the third line, which is not desired.
The solution needs to be compatible with Chrome and Internet Explorer 7 on Windows CE.