Menu in table cell always stretches to 100%

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pooh_
Beginner
Beginner
Posts: 2
Joined: Sat Sep 11, 2004 11:31 am

Menu in table cell always stretches to 100%

Post by pooh_ »

Hi,

I downloaded the table example menu where there is a menu in the centre. This page works fine. But when I copy and paste the entire code into an existing home page, the menu stretches to 100% of the table width, including the submenu's.

It is an 100% copy of the original sample page, pasted into a xoops theme index.php

Anybody an idea pls?

TIA
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

It's more than likely a CSS problem.

The menu uses tables, divs, td's, tr's and a's to build itself. If you declare any global properties for these HTML objects they will affect the menu.

See if you've got 100% declared for TABLE{} in your CSS

-- Andy
pooh_
Beginner
Beginner
Posts: 2
Joined: Sat Sep 11, 2004 11:31 am

Post by pooh_ »

Thanks for the quick reply...

10 bonus points, you win the car, Jackpot!!

That was it :-)

Many thanks
surfman
Beginner
Beginner
Posts: 1
Joined: Tue May 16, 2006 7:51 pm

same problem

Post by surfman »

I would like to use the menu to in my XOOPS-installation.

In the style.css the attributes for table are:

Code: Select all

table
{
	width:100%;
	font-size: 13px;
	background-color: #FFFFFF;
}
Is there a quick solution for the menu not to stretch to 100%?
When I change the CSS the whole theme is damaged.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Unfortunately, as the menu is built using tables any Global CSS settings for TABLE will also affect the menu.

My advice is to not use global css properties.

Hope this helps,
Andy
Post Reply