This is a migrated thread and some comments may be shown as answers.
Problem with grid row-height
2 Answers 45 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
pontus
Top achievements
Rank 1
pontus asked on 15 Feb 2011, 09:41 AM
I'm having trouble with the grid-height /row-hight.

This is what i want:
* Fixed sized grid
* Fixed row-height
* No scrolling
* Showing 10 post per page

I manage to set the grid height properly and when my grid shows 10 posts or more it's all good (see pic1) BUT when my grid shows <10 posts the row-height of each post increases (see pic2). Please help me with this one.

/Pontus

2 Answers, 1 is accepted

Sort by
0
Demon
Top achievements
Rank 1
answered on 15 Feb 2011, 01:13 PM
Hi,

It looks like the Grid <table> has a 100% height style applied - you should remove it. Generally, you can't have a fixed-height table with a fixed row height if the number of rows varies. Consider enabling scrolling.
0
pontus
Top achievements
Rank 1
answered on 15 Feb 2011, 03:14 PM
Thanks for the reply. This is my table style:

.t-grid table
{
    width:100%;
    border-collapse:separate;
    empty-cells:show;
    border:0;
    height:300px;
}
Tags
Grid
Asked by
pontus
Top achievements
Rank 1
Answers by
Demon
Top achievements
Rank 1
pontus
Top achievements
Rank 1
Share this question
or