Deprecated tags?

liunx

Guest
valign="top" is now deprecated...<br />
<br />
Can anyone tell me the correct CSS 1.0 equivalent to place within a <tr> please.<br />
<br />
Ta!<!--content-->tr {<br />
vertical-align : top;<br />
}<br />
<br />
Actually, I didn't realize this was in CSS1.<br />
<br />
But, I wouldn't be surprised to find that browser support of it is spotty.<br />
<br />
Neil<!--content-->valign doesn't belong in the TR tag anyway. it goes into the table or tabel cell.<!--content-->Good point, give that ....ummm.....ahhhh.....thing a gold star. I should of course have written:<br />
<br />
td {<br />
vertical-align : top;<br />
}<br />
<br />
Although, I wouldn't be surprised if CSS does in fact let you run it.<br />
<br />
Neil<!--content-->he shooooots and it a 3 pointer :D:P<br />
<br />
sure you could run it, but the point would be???<br />
<br />
I know you meant that Neil, just letting you know that you are right :D<!--content-->Of course I'm right, I'm always right. :rolleyes: <br />
<br />
BTW, needless to say vertical-align doesn't work in NN 4.xx<br />
<br />
Neil<br />
Except when I'm wrong.<!--content-->how do you figure, sure it does. works really well just like IE. at least on my 4.79 version<br />
<br />
<br />
<HTML><br />
<head><br />
</head><br />
<body><br />
<table border="1" cellpadding="0" cellspacing="0"><br />
<tr><br />
<td valign="top"> some text</td><br />
<td><br><br><br><br><br><br><br><br><br><br><br><br><br />
<br><br><br>text 2</td><br />
</tr><br />
</table><br />
</body><br />
</HTML><!--content-->Ummm, scoutt I hate to say this, but I was referring to the CSS of td {vertical-align: top} and not the old deprecated <td valign="top">. :P<br />
<br />
I think you just fouled out.<br />
<br />
Not that I'm overly worried that the CSS doesn't work in the antique NN, I've pretty much given up on NN 4.xx and while I'll make sure the site is viewable, I certainly won't be trying to make it anywhere near the layout of IE 5+ and NN 7.<br />
<br />
Neil<br />
This was not an edit to change "tr" to "td" - absolutely not. Hey scoutt, let's just go to the pub, this making my head hurt.<!--content-->oh sure, css css css.. everybody likes css. hmm where did I hear that from :P<br />
<br />
I see, I think I read your post wrong :o <br />
<br />
gotcha, yeah I see why that wouldn't work in ns4.xx<!--content-->I'm afraid you are wrong scoutt... valign was a legal tag in TR to specify the vertical alignment of the text (or other elements) within cells of the current row. It is now deprecated however.<br />
<br />
Have a look here:<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TR">http://www.w3.org/TR/REC-html40/struct/ ... ml#edef-TR</a><!-- m --><!--content-->Oh and thanks everyone including you scoutt ;) for helping me out on that one.<!--content-->Originally posted by entimp <br />
I'm afraid you are wrong scoutt... valign was a legal tag in TR to specify the vertical alignment of the text (or other elements) within cells of the current row. It is now deprecated however.<br />
<br />
Have a look here:<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TR">http://www.w3.org/TR/REC-html40/struct/ ... ml#edef-TR</a><!-- m --> <br />
I am wrong huh?? well I really hate to disagree with you and I would admit if I was, think about this and then take a look.<br />
<br />
you have a table, in that table is a row and in that row is a cell, correct so far? well each cell is as big as the row, so how can the row have a valign in it? sure it will work but the point is meaningless since it is suppose to go in the cell. valign is for text/stuff inside a table cell, not the row.<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/struct/tables.html#adef-valign">http://www.w3.org/TR/REC-html40/struct/ ... def-valign</a><!-- m --><br />
<br />
notice how it says CELL data and not ROW data?<br />
<br />
and if you notice in that link you specified that align and valign are in ALL elements of a table.<br />
<br />
look here<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2.1">http://www.w3.org/TR/REC-html40/struct/ ... l#h-11.2.1</a><!-- m --><br />
<br />
scroll downa littel bit and see the align in the table tag? do you see that text in a TR tag? no I don't think so.<br />
<br />
but you are right, align and valign is deprecated in all elements, even a div tag.<!--content-->**************************************************<br />
* * *<br />
* * ********************** *<br />
* * * * *<br />
* * * * *<br />
* ******************** * * * *<br />
* * * * * * *<br />
* * * * ********************** *<br />
* * * * *<br />
* * * * ********************** *<br />
* * * * * * *<br />
* ******************** * * * *<br />
* * * * *<br />
* * * * *<br />
* * ********************** *<br />
* * *<br />
**************************************************<br />
<br />
<br />
The above is a very basic idea of the table I am using. One table, one row and two coloumns. The Column to the left contains one table, the one to the right contains two tables. At the moment the ones on the right are populated with enough text so that combined they control the height of their respective parent table. However the one on the left which has little text will always be valigned to the middle by default. Without out wanting to fix the cell height to 100%, I need the left table/cell to be valigned to the top. I hope that makes sense. And it seems to me that the correct place to put this valign attribute is in the TR which controls the respective row. This seems logical to me and the fact that in W3C (HTML 4.0) it is listed as a valid attribute to <TR> then that to me says it is the correct way of sorting such a problem.<br />
<br />
In fact I have tested this, and it seems to work fine. Any thoughts?<!--content-->look at it this way. if you use cellpadding it makes the cells spread out, correct. notice how the cells are in the respective places? the cells is not moving up or down it is the data in the cell that is moving.<br />
<br />
now take the valign out of the row and put it in the cell. same thing happens huh? the cell is not moving as it is always as big as the row, it is for the data in the cell.<br />
<br />
and it doesn't say anywhere in the w3.org site that valign in a row is valid. it just says you can use it but it deosn't make sense since it doesn't do any good as align/valign is for data not the cell itself.<!--content-->Ok heres my way:<br />
<!-- w --><a class="postlink" href="http://www.entimp.com">www.entimp.com</a><!-- w --><br />
<br />
and heres yours:<br />
<!-- w --><a class="postlink" href="http://www.entimp.com/index1.html">www.entimp.com/index1.html</a><!-- w --><br />
<br />
what am I doing wrong then?<br />
Note that this is a test page not worried about anything else at all.<!--content-->in the table that has the text "This months releases at glance" the valign in this tble needs to go up 1 level.<br />
<br />
<br />
<td width="200" valign="top"><br />
<table class="table_inner"><br />
<tr><br />
<td>This months releases at glance.<br><br><br></td><br />
</tr><br />
</table><br />
</td><br />
<br />
I want the text/table in this cell to be aligned up top so we put it in the cell, not the table that holds the data. this would be different if you didn't nest tables.<!--content-->But I need it where it is so the top borders line up squarely.<!--content-->then take the valign out of the other tr tag and insert it into the td that holds it<!--content-->I did that and it doesn't work. Huh??? anyway no worries for now, I will validate it when done, it works and I'm happy, if doesn't validate I will deep fry it then... Thanks for your help.<!--content-->well ok bu tI don't know what you were doing wrong because it worked for me.<!--content-->
 
Back
Top