1
fredski
Tables within a page problems. HELP!
  • 2004/4/20 12:54

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I have just created my very first simple module ****round of applause*** and everything works ok apart from the fact that my tables spread right accross the content page although they should be set to 80%. Im using html as the content pages which are called by the following code in a php file in my module:-

include("../../mainfile.php");
include 
XOOPS_ROOT_PATH.'/header.php';
OpenTable();

include(
"pat-testing-prices.html");


CloseTable();
include (
"../../footer.php");
?>

even when I try to set the tables to a set size in the html they spread right accross the page.
Any help would be much appreciated.

2
fredski
Re: Tables within a page problems. HELP!
  • 2004/4/21 8:54

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Could I fix it by putting a cell on each side of my table with a none fixed size and the cells with my content at a fixed size?

3
chapi
Re: Tables within a page problems. HELP!
  • 2004/4/21 8:59

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Can we see this in action? Pictures are better than describing the problem

Maybe the content is to large, so the table can't be resized?

4
fredski
Re: Tables within a page problems. HELP!
  • 2004/4/21 13:34

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


The content in at least one table is tiny so no problems there, but it still takes up the whole page.
Page in question here

5
chapi
Re: Tables within a page problems. HELP!
  • 2004/4/21 13:42

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Ah now I got your problem! The solution is in your stylesheet.

In your themes css file, themes/ideal-clean/style.css, you will find the following entry at the very beginning.

Quote:

table
{
width: 100%;
font-size: 11px;
}


This will cause every table to have 100% width. You have to delete this in order to use other width for some tables. But remember that this removal will affect ALL tables.

6
hsalazar
Re: Tables within a page problems. HELP!
  • 2004/4/21 13:48

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


fredski:

Perhaps you should also check your code. The source file shows a double set of tags.

Cheers.

Login

Who's Online

407 user(s) are online (318 user(s) are browsing Support Forums)


Members: 0


Guests: 407


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