morpheuz Posted July 16, 2006 Share Posted July 16, 2006 Ok, I have a table that I want to change dynamically and need a div or such to use with ajax. The content within this table is made up of image slices so I'd rather there be a way to alter the table row content in its entirety using minimal effort as opposed to divving up each td. What I would like to know is if the kind of structures below will work or are they just examples of bad html?:<table><div id="blah"><tr><td>...</td><td>...</td><td>...</td></tr></div></table>or..<table><tr><div id="blah"><td>...</td><td>...</td><td>...</td></div></tr></table> Quote Link to comment https://forums.phpfreaks.com/topic/14772-div-placement-question-is-this-bad-syntax/ Share on other sites More sharing options...
wildteen88 Posted July 16, 2006 Share Posted July 16, 2006 Dont use a div at all! Just give the <tr> tag(s) an id if you want to update table rows, or scrap the table altogether and use divs and style them with CSS Quote Link to comment https://forums.phpfreaks.com/topic/14772-div-placement-question-is-this-bad-syntax/#findComment-58987 Share on other sites More sharing options...
cmgmyr Posted July 16, 2006 Share Posted July 16, 2006 I think you should try and convert all over to CSS. If you do it like you gave examples for, you are going to have a lot of problems.-Chris Quote Link to comment https://forums.phpfreaks.com/topic/14772-div-placement-question-is-this-bad-syntax/#findComment-59012 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.