More actions
| Line 162: | Line 162: | ||
==== Layout tables ==== | ==== Layout tables ==== | ||
Avoid using tables for layout purposes only. The best option is to use [[HTML]]'s <code><div></code> blocks and style attributes because they provide flexibility. | Avoid using tables for layout purposes only. The best option is to use [[Wikipedia:HTML|HTML]]'s <code><div></code> blocks and style attributes because they provide flexibility. | ||
For simple layouts, tables can be an option. Especially if the only point of the table is to get a floating effect, then <code>align="right"</code> etc. will work with some browsers [[#Users with limited CSS/JavaScript support|not supporting CSS]] at all. This is in fact a verbose approximation of <code><div></code> plus CSS, and not the design sin known as (nested) "table layout". | For simple layouts, tables can be an option. Especially if the only point of the table is to get a floating effect, then <code>align="right"</code> etc. will work with some browsers [[#Users with limited CSS/JavaScript support|not supporting CSS]] at all. This is in fact a verbose approximation of <code><div></code> plus CSS, and not the design sin known as (nested) "table layout". | ||