PDA

View Full Version : Iframes, tables, colspan and rowspan. My table disappears!


atrox_acies
03-23-2005, 03:29 PM
Hi all,

I made a simple table (basic HTML), from 2 collumns and 3 rows. The whole right column is 1 text field (this means rowspan="3" for the upper right cell). But when I tried to use an iframe in that cell, the bottem left 2 cells disappeared, like I coded for just 2 cells (with in the right cell the frame) in a table and not for 4 cells. Can anyone please explain what I could've done wrong? Or is it my browser (IE6)?

p.s. When I remove the Iframe, I have the table I wanted with 4 cells

Jero
03-23-2005, 04:56 PM
You're using tables for the structure of your page? That is defenitly not recommended. You should only use HTML elements for what they are meant to be used (tables should only be used for tabular data) to improve your site's accessibility. For your layout you should use the DIV element instead. It's much more flexible once you know how to use it together with CSS. You can learn the very basics at HTML Dog (http://www.htmldog.com/guides/htmlintermediate/spandiv/). If you like to learn more about this, here (http://www.codingforums.com/showthread.php?t=20862) is a topic with loads of links to great websites.

(Lol, I should save this text. I already used it in 3 other topics.)

atrox_acies
03-24-2005, 06:47 AM
Thank you for your help, Jero.

Jero
03-24-2005, 07:23 AM
No problem.