![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
King of Portal
|
Ok let me set up the problem:
<table> <tr> <td> <!-- Content 1 --> </td> <td rowspan="2"> <!-- Content 2 --> </td> </tr> <tr> <td> <!-- Content 3 --> </td> </tr> </table>
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Ok, I think I see what you are getting at. Just give the td tag (of content 3) a height property. Seems simple I know, but is that the answer? If not I don't understand what you are saying.
|
|
|
|
|
|
#3 |
|
King of Portal
|
Well this is currently what I'm doing in CSS:
td.timestamp {
height: 1px;
text-align: right;
padding-right: 6px;
vertical-align: bottom;
border: 1px #444444 solid;
border-left: none;
width: 200px;
}
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#4 | |
|
Hobbyist Programmer
|
Quote:
|
|
|
|
|
|
|
#5 |
|
King of Portal
|
Note the rowspan attribute in the content 2 td tag
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
|
my bad, I understand now. But who ever made the table setup (creator of HTML), I think they should have not aloud that since the whole idea of tables seems to be to make a uniformed setup and that isn't uniformed, at least IMO.
|
|
|
|
|
|
#7 |
|
Expert Programmer
|
I disagree with that. I can't think how many times I needed to span an extra cell or so. Remember that at one point in time, tables were used for layouts. That method has long since been scrutinized and is now no longer really "accepted" in today's society without being flamed.
|
|
|
|
|
|
#8 |
|
King of Portal
|
I figure a pictorial approach might help to understand what I'm trying to achieve.
IE produces this result (incorrect and it just arbitrarily size the cell heights): IE Table Opera produces this result (incorrect but it only uses as much as necessary to fit the first cell height and then the second takes up all the rest): Opera Table FireFox produces this result (which is correct and I would like to reproduce in the other browsers): FireFox Table Actual html: http://grimbb.phpnet.us/row_h.html
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis Last edited by grimpirate; May 2nd, 2007 at 2:20 PM. |
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You are calling one result correct and others incorrect. What is your authority for that?
The fact that some container doesn't have some attribute supplied does not mean that the attribute is zero. Browser makers determine a set of default attributes that THEY think is suitable, even if another browser manufacturer thinks differently. Simply compare paragraph spacing in Firefox and IE to see what I mean. One of the things you can do with table cells is specify the vertical and horizontal alignments. The defaults may not be what you want. Another thing you can do is specify heights. It isn't at all clear what you expect, since you think Firefox is "right" by taking more room to display "lorem ipsum" than it is for "Suspendisse vitae".
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#10 |
|
King of Portal
|
I'm not implying that one browser is doing things correctly as opposed to the other. I'm saying Firefox is right, based on the visual representation that I wish to achieve. It automatically/intrinsically achieves the single line cell height that I'm looking for and I'd like to know how to achieve that in the other browsers. As I stipulated in the original post I'm looking for a cross-browser solution. If I believed Firefox were correct I would simply dismiss the other browsers. My authority is defined by the parameters of the problem. I wasn't making any sort of stipulation that one browser is "superior" to the next.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| class problem | brad sue | C++ | 0 | Oct 21st, 2006 6:49 PM |
| 100% Table Height using Firefox | hoffmandirt | ASP.NET | 2 | Jun 23rd, 2006 9:34 AM |
| Problem Associated with Vector Source code | buggytoast | Java | 3 | Apr 2nd, 2006 5:41 AM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 11:10 AM |
| Variable array problem | Hintshigen | C | 6 | Apr 10th, 2005 2:35 PM |