954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Question: How Do I Create A 3-Piece Webpage?

I'm trying to make a link directory.
In short, It's going to have 9 categories and I want it to look like this:

_ _ _
_ _ _
_ _ _


At first, I made a 3x3 table. But when anyone submits a link, it breaks the whole thing. :shifty: You know?

If someone adds a link to the middle category... Enough of my n00bness already, I think you know what I'm saying.

Thank you. :)

Brinnie
Newbie Poster
16 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Umm, i'm not really sure what your saying here. But I think the solution is to not use a 3x3 table. Try a 3x1 table instead.

i.e. COL1 COL2 COL3

alpha_foobar
Junior Poster
182 posts since May 2005
Reputation Points: 20
Solved Threads: 5
 

I really don't understand either, but if you have a number of entry's not equal to a multiple of 3, you will have to calculate the left overs with the "mod" function if it is a dynamic webpage, and then add in an entry for the left over table datas s.

ProFreelance
Newbie Poster
17 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Well if I understand what you are trying to do you need to create a table. Create one table to lock your format and inside create another table that has three rows.

chrchcol
Newbie Poster
22 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

No no no, let me find similiar link page and I'll get back to you.

Brinnie
Newbie Poster
16 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 
Brinnie
Newbie Poster
16 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 
Ok, here's a similiar page: http://www.art-bridge.com/directory/abdir.htm

Do you mean a webpage in the following format:

----------------------
|....|...........|...|
|....|...........|...|
|....|...........|...|
|....|...........|...|
|....|...........|...|
|....|...........|...|
----------------------


Where the red is one section, the blue is another, and the green is a third?

You should use Tables inside of Tables.

[PHP]
Column 1 Here


Column 2 Here


Column 3 Here

[/PHP]

You can replace column 1, 2, and 3 with more tables to hold information.

Column 2 could equal =
[PHP]Table in the middle
Some information of the table
[/PHP]

ProFreelance
Newbie Poster
17 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

So whats the issue when people add links?

But this page just uses lots of tables to structure everything... basically like this:

<table width="100%">
   <tr>
      <td width="150" bgcolor="black"><font color="white">left column</font></td>
      <td width="650" bgcolor="blue"><font color="white">center column</font></td>
      <td width="150" bgcolor="red"><font color="white">right column</font></td>
   </tr>
</table>


And you can fill the cells in the table to add more levels of formatting...

alpha_foobar
Junior Poster
182 posts since May 2005
Reputation Points: 20
Solved Threads: 5
 

well, alpha_foobar, I wanted to put a horizontal row of affiliates down the left side.
But when I tested it and added some links, it pushed the tables in the middle down. :(

So it's like, the ultimate goal is to have three collums- where changes made in 1 column do not effect the other 2.

Ya know?


I can design a mock-up in photoshop of what I'm going for if you guys have the patience to show me how to implement it.

Brinnie
Newbie Poster
16 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

add this to the tag for column 2,

<td valign=top>


That way when u add links to the left, the stuff in the middle stays top aligned.

ProFreelance
Newbie Poster
17 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

add this to the tag for column 2,

<td valign=top>

That way when u add links to the left, the stuff in the middle stays top aligned. the thing is, all 9 categories are going to expand downward when users submit links... should I add that to all of them?

Brinnie
Newbie Poster
16 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

yes

ProFreelance
Newbie Poster
17 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 
yes

ok, ill try it and get back to yall. :)

Brinnie
Newbie Poster
16 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

You can look at my site, shown in my signature, for an example of 3-column layout using CSS, instead of tables. The middle column expands or shrinks with the size of the browser.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

I think what you mean is by using divs instead of tables. Div's are not CSS, they are HTML.

ProFreelance
Newbie Poster
17 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

No, I mean using CSS. Sure, I'm using DIVs to contain the content, but "using DIVs" doesn't give you columns. One has to use CSS to achieve that effect.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 
You can look at my site, shown in my signature, for an example of 3-column layout using CSS, instead of tables. The middle column expands or shrinks with the size of the browser.

That's essentialy what I'm trying to do.

Can I build off yours? I won't look anything like it in the end, I promise. :p

Brinnie
Newbie Poster
16 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Sure, no problem.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You