PDA

View Full Version : Problem with Tables


heathabear
August 6th, 2004, 01:07 AM
Hi,
I've been trying to fix my table problem for weeks to no avail. The problem is in my LiveJournal friends page: http://heathabear.livejournal.com/friends

When there is an entry that doesn't have much text, apparently not enough to push the userpic to the right, the whole entry becomes centered. I think this may be because my table table table width is set to auto, but if I change it to a number, it warps the width allocated for the the entries. The LiveJournal style editor has a bunch of different fields with code in them that I'm afraid might be messing up the page, but aren't viewable as the problem upon viewing the page.
Thus, I've logged out of LJ and uploaded my saved style editor page in case it might help in identifying exactly where the problem is:

edit.zip (http://www.chapsticky.net/edit.zip)

I'd really appreciate any help you can give me - this has been driving me nuts! Thanks!

Steven.Bentley
August 6th, 2004, 04:35 PM
Looks to me like it's a problem with the table tag that the journal articles are in - if you specify the table as 100% width that may well sort it.

heathabear
August 7th, 2004, 06:05 AM
Hi,
Thanks for the reply. Unfortunately, your suggestion didn't work. Anything else I can try? I'm at my wit's end! :p

rockboy
August 7th, 2004, 07:17 AM
I'm guessing at this point. There's so many nested tables and style tags I got lost trying to follow it.

One thing that might give a clue to a fix is to try the code below then work backwards to fix the title block width. It compresses when you add this, but the narrow entries are full width. It's hard to explain. Try it and you'll see what I mean. It's not "fixed" just different. Maybe it'll look better aesthetically. :dizzy:

Add this to the style section:

table table table td.index {
width: 100%; }

The class=entrybox and class=index are in the html code but missing from your style section. Maybe they were in the original template and somehow got deleted. If you know of another livejournal using the same software check their source code and see if there's something in there you might copy and try out.