PDA

View Full Version : Add a third column


jules
27-02-08, 23:19
hi,

im not too good at coding, but i want to add a third column. i have nearly done it, but i cant align in properly.

i have created an extra element, linked into the index.php, and altered the css. but i cant align in properly.

see here

http://www.findperfectgifts.co.uk

how do i get the column on the right side to be at the same level as the other 2 ??

Bud
28-02-08, 12:12
I'm no coder but when I've had this problem I've always found that I needed to remove a </div> from somewhere - probably at the bottom of the second column code.

Amoochi
28-02-08, 13:10
I agree, it definately looks like either one too many or one too few on the <div> </div> tags.

Although personally, I couldn't double check against my own, as i've gone the old fashioned method with my sites and have actually replaced all the <div> stuff with <table>, <tr> and <td> tags instead, as I feel I have much more control over the display of stuff that way and it fits into the design I have better, even though I know it's not particularly the best and cleanest coding method.

jules
28-02-08, 13:19
i tried to change the div tags around, but still couldnt figure it out:confused:

Namesakes
01-03-08, 23:18
Hi,

You don't have a table set-up it is all floating.

If you have a webpage editor you can edit the index.tpl in that.

Set-up a table and put what you want where you want.

My site is based on a table 4x1 with some cells split into multi rows.

John

jules
03-03-08, 19:13
Hi,

You don't have a table set-up it is all floating.

If you have a webpage editor you can edit the index.tpl in that.

Set-up a table and put what you want where you want.

My site is based on a table 4x1 with some cells split into multi rows.

John

what webpage editor do you recommend??

Namesakes
03-03-08, 19:18
I just use Frontpage but I sure there a loads out there that are just as good or better.

The Template files are not in tables so they just float around, I prefer to work in tables that way I get more control of where each item is.

John

jules
03-03-08, 20:31
ok. i have front page. i have opened the index.tlp file. so u have to edit the code yourself ? how can you preview what you do ? i just see the code of the body.

when i click insert table, it inserts a table, then what ?

Mel
03-03-08, 22:50
Re: Question about Web Page Editor

If you are in this for the long haul and will be building loads of landing pages, more websites etc etc then I would say Dreamweaver CS3

I use it every day - not the cheapest but more or less the industry standard - steep learning curve to make good use of it but well worth it

Mel:)

jules
03-03-08, 22:54
ok thanks. i'll check dream weaver out

Mel
03-03-08, 23:16
I rarely use table nowadays but here is an idea for a centered table fixed width 800 pixels with a 1 pixel border which you could change to zero "0"


The left column will be your main nav, the center for product descriptions and the right hand column for banners or whatever you choose to put in there

<table width="800" border="1" cellspacing="0" cellpadding="5" align="center">
<tr>
<td width="140">Nav goes here</td>
<td>Products here</td>
<td width="140">Your Choice</td>
</tr>
</table>

Mel

jules
04-03-08, 01:00
thanks mel. managed to implement the code. will do for the short term, until i learn some more

Namesakes
04-03-08, 11:43
If you build your table in Front Page or any other editor with preview you can then put the coded parts into the cells you want.

The you don't have to do too much with the code, just fromat the tables.

If you want to do the "inculdes" tpl files then this time open the file make the table but just cut the code for the table and paste it with a text editor into the tpl file.

My site has 4 tables, Table 1 Header, Table 2 Main View, Table 3 Footer.

John