Jump to content


Photo

Div placement question (is this bad syntax?)


  • Please log in to reply
2 replies to this topic

#1 morpheuz

morpheuz
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 16 July 2006 - 03:11 PM

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>



#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 16 July 2006 - 04:21 PM

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

#3 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 16 July 2006 - 05:17 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users