...

View Full Version : Table layout help, im really stuck =(



LukePev
10-20-2004, 11:15 PM
Right the problem is, something went wrong with my layout when i added a menu to the right of my website, i originally had 1 to the left, but now everything has gone wrong. I would appreciate if anyone could take a few minutes maybe to look at it and maybe could correct it for me.
Iv spent weeks trying and can't get anywhere.

this is the url to my site..
http://www.lanfire.co.uk/lukepev/index.php

^^ as you can see the tables are messed. they should fit the width of the image,which is 768 pixels accross.

now if you go to
http://www.lanfire.co.uk/lukepev/index.php?page=wars

iv actually got somewhere and manmaged to get the outer table width in lign with the banner. but i cant fix the center table and remove the space above it..


Here i will provide, the index.php, main.php and wars.php for you to be able to view and edit it perfectly.

I really appreciate any help. Thanks a lot

Luke

ronaldb66
10-21-2004, 02:16 PM
Could you have used more nested tables?!! No wonder you've tabled your way into a corner.

Anyway: That charming little header image, not influenced in any way by taste, is supposed to be 768 px wide; i'll take your word for it.
Your left and right side tables are each 110 px, and you've set the center one at 530. Adds up to 750 px, leaving you 18 px room for borders, cell spacing, etc. I didn't bother, but if you accurately calculate the actual width, you'll probably end up with the current result.
An easy way to prove me wrong would be to reduce the center table to, say, 500 px; the whole lot should shrink to something near the header width.

Another good idea would be to validate the lot; maybe you missed a tag somewhere (which wouldn't surprise me, considering the amount of markup). For this, it's best to add an appropriate doctype, which would be yet another good idea anyway.

Lastly, it is plain wrong to have internal style declarations halfway down the body element; they belong in the head element, and only there.

I'd seriously recommend you to read up on web standards and cascading style sheets; you really don't need nested tables five (!) levels deep to get a border around something...

SpiritualStorms
10-25-2004, 01:56 AM
LOL:


Could you have used more nested tables?!! No wonder you've tabled your way into a corner.


You think?

Actually, i dont blame him. It's something i would have done really. There's really no way of getting around certain things in pure HTML. It is only when i see complexity of that nature that i begin to desire a learning of something other than Tables, something like CSS. I still dont think though that CSS has been all that easy really. But in many ways, yea, i have seen examples of how you can basically by pass some of the limitations imposed by mere pure HTML.

ronaldb66
10-25-2004, 10:09 AM
There's no conceivable situation in which nesting tables five levels deep is required for any type of layout.

If one is not comfortable with CSS positioning, or if specific layout wishes simply cannot be met with pure CSS alone, there is limited use for a layout table. A table, as in one.

The layout mentioned by the initial poster, which is basically a header / three-column main / footer page, everything can be accomplished with proper markup, basic CSS without any positioning, and one (1) table to create three columns.

HTML alone was never intended to create complex visual layouts with; that's why they (Who? Well, visitors from outer space, of course!) invented CSS. And yes, something that powerful and versatile usually is hard to get to grips with; that's why forums like these bring novices and experts together to help eachother out.

SpiritualStorms
10-25-2004, 10:14 AM
HTML alone was never intended to create complex visual layouts with; that's why they (Who? Well, visitors from outer space, of course!) invented CSS. And yes, something that powerful and versatile usually is hard to get to grips with; that's why forums like these bring novices and experts together to help eachother out.


LOL.

Personally, i think the post is a fake. But you never know. He could be one of the alians from outer space.

Just to reenforce what has already been said, i think a single table with a considerable porption of CSS might be really your only route.

bradyj
10-25-2004, 05:32 PM
Essentially, though, his layout is exactly the same as:
http://www.sfexaminer.com/home/

Which does not use any tables:) It's difficult to understand CSS layouts when you're not accustomed to it (I think it took me longer to get CSS than HTML/XHTML) but it's worth it and comes easy when you're done -- with the occassional problem here and there!

As for that website -- there are so many errors in there, I cannot pinpoint one that would be the culprit, all might have something to do with it. You should really clean up some of the junk in there, and then attack bugs -- otherwise, we're just doing a witchhunt.

SpiritualStorms
10-25-2004, 07:13 PM
From roy:

As for that website -- there are so many errors in there, I cannot pinpoint one that would be the culprit, all might have something to do with it. You should really clean up some of the junk in there, and then attack bugs -- otherwise, we're just doing a witchhunt.


Witchhunt? Is that like the same as a p*ssy hunt? LOL.

Roy Sinclair
10-25-2004, 09:54 PM
That's not me you quoted there :eek: .

SpiritualStorms
10-25-2004, 10:04 PM
LOL....oops. Your right. That should have been Bradyj. Boy, what a friggin blunder.

bradyj
10-26-2004, 12:12 AM
Witchhunt? Is that like the same as a p*ssy hunt? LOL.

Nooo :) it's a reference to 19th century American attacks on local women in Salem Massachusetts on the grounds they were enacting upon magical powers endowed by the Devil -- tortured, convicted, and murdered by political motives from religous zealouts devoid of any common sense :D

Not to forget our European friends who had their stint in the Dark Ages.

SpiritualStorms
10-26-2004, 01:07 AM
LOL......i am so insulted. Like i dont know about the Salem witch hunts. How dare you?

I was joking. I know what a witch hunt is.



from bradyj:

Nooo it's a reference to 19th century American attacks on local women in Salem Massachusetts on the grounds they were enacting upon magical powers endowed by the Devil -- tortured, convicted, and murdered by political motives from religous zealouts devoid of any common sense

Not to forget our European friends who had their stint in the Dark Ages.


Uuummmmm..padron me, lad, but since when have the religeous zealots ever been blessed by the sanctuary of common sense? Isn't that a bit of an oxymoron? Not to get on the pulpit here, but religion has never been founded on logic, reason, rationality, or anything under the heading of "intellectual virtue." In fact, i would say its imperative that a religion first kill off any allegiance to intellectual glories. Cant very well proceed with the task of preaching magic, and the what not, without first convincing the people that there is no such things as laws, and realities. Oh no. You cant sell the magic wond idea until you first make sure that there's no restrictions to how valid your imagine is. But this is really an old issue that hasnt as of yet seen its closure, or dawning. You'd think medicine would convince people that science is infinitely superior to potions, and spooka boos.

bradyj
10-26-2004, 01:49 AM
I know you were kidding, I was just teasing -- I agree with much of your statement, and to play devil's advocate, much of science has been progressed with the hope of religion.

However, if we are to further this discussion, I recommend going PM -- hijacking this thread would not be good, and would move us off topic too much :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum