Simply HTML Tables

Associate
Joined
18 May 2004
Posts
2,218
Chaps,

Trying to create a table in a html page but struggling with the resizing elements. ie catering for different resolutions.

Should the cells be locked dimensions, or based on percentages so can resize dynamically?
 
You shouldn't really be using tables for layout. More than likely it will be quicker to build what you want and easier to maintain using HTML + CSS.
 
Just reading Packt Publishing - Building Websites with Mambo.

Its telling me to create a "tabled" home page to create a template so I can then insert the "engine" php inserts once on the server and add in menus etc.

They do refer to CSS but TBH im a novice to CSS so dont really know what the powers of it are. Is just basic "styles" as I am using it for now and nothing more?
 
Just reading Packt Publishing - Building Websites with Mambo.

Its telling me to create a "tabled" home page to create a template so I can then insert the "engine" php inserts once on the server and add in menus etc.

They do refer to CSS but TBH im a novice to CSS so dont really know what the powers of it are. Is just basic "styles" as I am using it for now and nothing more?

You should never use tables for layout purposes; that's what CSS is for. CSS allows you to specify exactly how an element should be displayed, e.g. its size, margin, padding, positioning, type face, colours, etc. You can create very rich layouts relatively easily with CSS, and with much, much less code than would be required in a table-based layout. Check out http://htmldog.com/ for some good tutorials.
 
You should never use tables for layout purposes; that's what CSS is for. CSS allows you to specify exactly how an element should be displayed, e.g. its size, margin, padding, positioning, type face, colours, etc. You can create very rich layouts relatively easily with CSS, and with much, much less code than would be required in a table-based layout. Check out http://htmldog.com/ for some good tutorials.

Thanks, Ill have a read
 
The book states:

<html><head>
<?php mosShowHead(); ?>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="780" border="1">
<!-- Part 1 -->
<tr>
<!-- Area 1 -->
<td colspan="2" height="89" bgcolor="#F5C228">&nbsp;</td>
<!-- Area 2 -->
<td width="178" height="120" rowspan="2" bgcolor="#FFCC33">
<?php mosLoadModules ( 'user4' ); ?>
</td>
</tr>
<tr>
<!-- Area 3 -->
<td colspan="2" height="33" bgcolor="#FFCC33">
<?php mosPathWay(); ?>
</td>
</tr>
<!-- Part 2 -->
<tr>
<!-- Area 4 -->
<td width="197" height="233" bgcolor="#F5EE28" valign="top">
<?php mosLoadModules ( 'left' ); ?>
</td>
<!-- Area 5 -->
<td width="389" height="233" valign="top">
<?php mosMainBody(); ?>
</td>
<!-- Area 6 -->
<td width="178" height="233" bgcolor="#FFFF33" valign="top">
<?php mosLoadModules ( 'right' ); ?>
</td>
</tr>
<!-- Part 3 -->
<tr bgcolor="#FFCC33">
<!-- Area 7 -->
<td colspan="3" height="40">

So you are essentially they are saying create tables to insert php commands (ie mambo controls) into.

Will this work with a CSS based page?
 
Back
Top Bottom