1
fonte
default THEME question: table width
  • 2003/11/10 2:57

  • fonte

  • Just popping in

  • Posts: 1

  • Since: 2003/10/31


OK, here's the problem. In the default theme's style.css, all tables are asigned a width of 100%. This causes a critical problem with my CRITICAL module.

The developer of the module (Andromeda), Scott Matthews, described it like this to me:

"Unfortunately, it now becomes a bit more of a XOOPS issue. Let me explain:

The 'rows' of the Andromeda interface have width=100%, which means that they
fill up the horizontal space that they sit within (note that the
sub-components of those rows don't themselves have width=100%).

Previously, your XOOPS CSS was forcing *all* tables to width=100% and that,
I guess, included a table that Andromeda sits within. In other words,
Andromeda's explicit width=100% appears to sit within a width=100% (implied
via CSS) and so that filled up the space.

But, by forcing *all* tables to width=100%, Xoops' CSS also forces
Andromeda's sub-components to width=100%, and that messes up the display.

And when you disable Xoops' width=100%, the enclosing table loses it's
width=100%, and then when Andromeda fills up that space, it is no longer
filling up the horizontal space. (that make sense?)

So -- what you want to look for in XOOPS (or the XOOPS skin) is that
enclosing table, and provide it explicitly with width=100%

The problem is that when the XOOPS CSS sets *all* tables to width=100% it
breaks the layout of any element that doesn't want width=100%, if you see
what I mean..."

So, if I remove that line from the style.css (width: 100%), it causes problems with other modules and the general layout of this XOOPS theme...

Is there a fix that will work for both Andromeda (my critical module) and Xoops? Or, do I need to modify the way XOOPS uses a module? If so, where do I need to go to modify that?

Thanks!
fonte

2
MadFish
Re: default THEME question: table width
  • 2003/11/10 3:13

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


Hi

I'm not sure if this is exactly the same issue, but have a look at this thread. I'm pulling apart a few css that seem to work to try and find how they are different.

If you figure out a solution please let me know.

3
cfonte
Re: default THEME question: table width
  • 2003/11/10 4:04

  • cfonte

  • Just popping in

  • Posts: 10

  • Since: 2003/11/10


Tis me again with a new username (e-mail address change)...

What I need to find out is if there is a way to specify all tables width: 100% with either"

1. The table that holds the modules (if there is one) no specified width...

or

2. A specific table that holds this specific module with no specified width...

In both of these cases, there needs to be no table holding the table that holds the module... Which makes me think, maybe the best option is for there to be no table at all holding the module...

fonte

4
kevinv
Re: default THEME question: table width
  • 2003/11/10 4:06

  • kevinv

  • Friend of XOOPS

  • Posts: 44

  • Since: 2003/1/4 1


an inline css style will override a style from an included css style sheet. Instead of changing the default css, which changes everything, try finding the one template with the table causing the problem and use an inline style to override the width for just that table.

I like this site for css info:
http://www.htmlhelp.com/reference/css/

5
cfonte
Re: default THEME question: table width
  • 2003/11/10 4:09

  • cfonte

  • Just popping in

  • Posts: 10

  • Since: 2003/11/10


My question is, then, where is the table that holds the modules? Where does it appear in Xoops's code?

fonte

6
cfonte
Re: default THEME question: table width
  • 2003/12/2 2:07

  • cfonte

  • Just popping in

  • Posts: 10

  • Since: 2003/11/10


Thanks for everyone's help. I fixed the problem. For some reason the table that was holding the module didn't have a width, I guess it was getting the default width from style.css. So, I removed the "width: 100%" from the css file, and made the specific table width 100% in theme.html (default theme).

From what it looks like, the table that "holds" the module content does not have a specified width, by default.

7
aaroncp
Re: default THEME question: table width
  • 2004/6/30 1:02

  • aaroncp

  • Just popping in

  • Posts: 3

  • Since: 2004/6/28


So you got Andromeda to work in Xoops?

Can you post how?

Login

Who's Online

351 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 351


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits