Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table mayhem (in strict)

Status
Not open for further replies.
Feb 14, 2002
88
JP
This is driving me nuts. Not really sure what the problem is, so: examples:

-- this is my header, which is fine and dandy by itself. It's not declared as anything (as it's always included). Looks good, no?

-- this is what it looks like after I include it in a strict HTML file. The td tags should have the height set to exactly that of the images contained in each row. Cellpadding and cellspacing are both set to 0. Yet, they are "broken"

Any constructive suggestions?
 
The page is together in IE6 but there is a lot of code for such a simple layout.
Try putting the images into a table with the correct cell layout and no CSS formatting, you will get the same result.
Then you can add the necessary CSS for any additional formatting you require.


Keith
 
While your page validates (using the W3C's validator), it's hard from complete. You have no closing body or html tags, and a missing td.

That isn't causing the problem, however. On your penultimate table, put this style on every row:

Code:
font-size:0px; line-height:0px;

And the problem will go away.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Guys -- that's not the whole layout. I just figured you didn't want to see the whole thing, when the issue is basically the same. It's also in beta so I don't like posting the main page, although it's definitely not top secret stuff. It's several PHP files included within others, hence, the unclosed tags.

Anyways, If you do want to see the final final:

Try putting the images into a table with the correct cell layout and no CSS formatting, you will get the same result.

Did that -- basically stripped all the CSS formatting of the table (the middle one -- the one that technically doesn't need any) and I still have the same results in Firefox.
 
Billy -- I missed your first solution, which now seems to be getting me somewhere. Thanks.
 
All fixed up. Just gotta make a few more pages, then the fun working of moving that damn forum from the other server. o_O

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top