![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The doctype is 4.01 Transitional, |
|
/tr td>cell3</td |
#3
| |||
| |||
|
|
Scripsit Jarkko Kuoppamäki: The doctype is 4.01 Transitional, Why? |
|
/tr td>cell3</td This isn't valid under any of the HTML doctypes. Posting a real URL for the real page is often a good start. |
#4
| |||
| |||
|
|
I have a table consisting of a rowspan=3 cell and three normal size cells on top of each other, on the left side of the first one. If the tall one grows (due to its content) vertically let's say double, the height of other 3 cells double, too. I would need two of those to stay as they were and the last one to grow 4 times its height. How do I accomplish this? I've tried the height parameter of the cell (<td>) or the css defition. However, this (I believe) defines only the minimum height that will expand if the contents so require. The doctype is 4.01 Transitional, but I guess it could be changed if needed. A solution compatible with all browsers would be ideal, most browsers sufficient and if nothing else fails, I'd be willing to accept even a IE-only compatible one. To illustrate: table border=1 tr td>cell2</td td rowspan=3><div style="height:300px">cell1</div></td /tr tr td>cell3</td /tr td>cell4</td /tr /table |
#5
| |||
| |||
|
|
In article <J%7ij.280098$mT6.42011 (AT) reader1 (DOT) news.saunalahti.fi>, Safari 2.0.4 gets you what you want with the above (as long as cell2 and cell3 have the same "amount" of content). But you might say more about what you are really doing before anyone here will try hard to get you as close to what you might be happy with cross-browser-wise. |
#6
| |||
| |||
|
|
dorayme wrote: In article <J%7ij.280098$mT6.42011 (AT) reader1 (DOT) news.saunalahti.fi>, Safari 2.0.4 gets you what you want with the above (as long as cell2 and cell3 have the same "amount" of content). But you might say more about what you are really doing before anyone here will try hard to get you as close to what you might be happy with cross-browser-wise. I'll see if I can get a copy of the original page available. Meanwhile: cell1 is dynamic content, and depending on the end user's choices, displaying it may take space a little (no problem) or more. There used to be two additional cells on top of cell1, which worked fine: if cell1 grew, cell4 (on the bottom) next to it grew. However, the two additional cells were taking space and I was asked to remove them. I did and now I'm asked why cell2 and cell3 are stretched vertically. It is starting to look like I need to redesign the left side of the table, even though they were given as a layout that is used everywhere else on the site in question. --Jarkko |
#7
| |||
| |||
|
|
On Sat, 12 Jan 2008 20:52:27 +0200, Jarkko Kuoppamäki jarkko.kuoppamaki (AT) gmail (DOT) n...lease.com.invalid> wrote: I have a table consisting of a rowspan=3 cell and three normal size cells on top of each other, on the left side of the first one. If the tall one grows (due to its content) vertically let's say double, the height of other 3 cells double, too. I would need two of those to stay as they were and the last one to grow 4 times its height. How do I accomplish this? I've tried the height parameter of the cell (<td>) or the css defition. However, this (I believe) defines only the minimum height that will expand if the contents so require. The doctype is 4.01 Transitional, but I guess it could be changed if needed. A solution compatible with all browsers would be ideal, most browsers sufficient and if nothing else fails, I'd be willing to accept even a IE-only compatible one. To illustrate: table border=1 tr td>cell2</td td rowspan=3><div style="height:300px">cell1</div></td /tr td>cell3</td /tr td>cell4</td /tr /table One solution might be to use two tables side by side. That way, the adjacent cell won't react to what the growing cell does. Unless your table is much more complicated than shown, try using pure divisions instead of a table format. |
#8
| |||
| |||
|
|
I have a table consisting of a rowspan=3 cell and three normal size cells on top of each other, on the left side of the first one. If the tall one grows (due to its content) vertically let's say double, the height of other 3 cells double, too. I would need two of those to stay as they were and the last one to grow 4 times its height. How do I accomplish this? |
|
I've tried the height parameter of the cell (<td>) or the css defition. However, this (I believe) defines only the minimum height that will expand if the contents so require. |
#9
| |||
| |||
|
|
On Sun, 13 Jan 2008 16:50:45 -0600, Ben C <spamspam (AT) spam (DOT) eggs> wrote: [...] You can usually "force" the exact height like this: td style="height: 200px" div style="height: 200px; overflow: hidden" contents /div /td You don't have to use overflow: hidden of course-- overflow: scroll might be a better choice. I've seen a few examples of overflow:scroll, where the window created was so small, that scrolling with the bar was almost impossible. One must consider just how much data is going to be presented in that window if scrolling is used. |
#10
| |||
| |||
|
|
On Sun, 13 Jan 2008 10:01:02 -0500, "Jonathan N. Little" lws4art (AT) centralva (DOT) net> wrote: Or not use a table at all since it is most likely not tabular data. The ol' "Why is it so hard to drive nails with this screwdriver" question. How would you know unless you saw the data presented? He was asking a legitimate question on the usage of tables. Not what was going into it. There are possibilities of having tabular data expand in one cell but not others. |
![]() |
| Thread Tools | |
| Display Modes | |
| |