snowieken
10-13-2005, 09:46 AM
As a web developer, I am fully aware of the benefits of a CSS design towards a table design, but that leaves me with the unability to solve a seemingly simple problem whenever tables are required.
With data retrieved from a database, I have to create the layout pictured here (http://www.woutichon.be/rowspan.html). As you can see, the fields in the database which have to be displayed are title, further information and a picture. The layout in this example is, as you can see by the code, nowhere adjusted in height.
The problem is that it should be like this (http://www.woutichon.be/rowspan2.html). The title is never a big field, and the info cell is vertically aligned to the top so that the information comes right under the title. But in order to achieve this design, I have to set the height fixed of the blue cell, rather than the yellow one (while it is actually the yellow cell that needs a fixed height). The pictures from the database are of different sizes, so it is impossible to set the blue cell to a fixed height, because that's the one that should be extending (and not the yellow one).
I am sure this can be fixed by using a main table with one row and two cells, and then use a nested table in the second cell so that the first cell has no influence whatsoever on it, but the problem is that this table layout is already implemented in the framework the client is using. It might be possible to rewrite it and then reimplement it, but it would of course be much faster if there is some kind of CSS solution to giving the yellow cell a fixed height, not depending on the red cell.
I hope I made myself clear a bit. ;)
With data retrieved from a database, I have to create the layout pictured here (http://www.woutichon.be/rowspan.html). As you can see, the fields in the database which have to be displayed are title, further information and a picture. The layout in this example is, as you can see by the code, nowhere adjusted in height.
The problem is that it should be like this (http://www.woutichon.be/rowspan2.html). The title is never a big field, and the info cell is vertically aligned to the top so that the information comes right under the title. But in order to achieve this design, I have to set the height fixed of the blue cell, rather than the yellow one (while it is actually the yellow cell that needs a fixed height). The pictures from the database are of different sizes, so it is impossible to set the blue cell to a fixed height, because that's the one that should be extending (and not the yellow one).
I am sure this can be fixed by using a main table with one row and two cells, and then use a nested table in the second cell so that the first cell has no influence whatsoever on it, but the problem is that this table layout is already implemented in the framework the client is using. It might be possible to rewrite it and then reimplement it, but it would of course be much faster if there is some kind of CSS solution to giving the yellow cell a fixed height, not depending on the red cell.
I hope I made myself clear a bit. ;)