Loading...
 
Skip to main content

Themes


Drop down menu position problem

I am using the coeles theme where I have fixed the width of the webpage to 1024px in the body of the template. When the website is displayed on a wide screen monitor the size of the page stays fixed which is a good thing but when you move the mouse over one of the menu button that has a drop down menu the drop down menu pops down on the location where the button would be if I had not fixed the width of the page. I have played with the position style setting under mdksubmenu where I have set it to relative, absolute, fixed etc. the best that I have been able to do is to position the horizontal alignment correctly but the vertical is way off as it pops down way down almost in the middle of the screen.
I am not very familiar with css styles and I do not know where else to look any help will be greatly appreciated.

The default method of laying out Tikiwiki's pages is a little complex and involves floating the columns into place. Simply specifying a page width for the body, etc. generally doesn't work, especially in IE browsers.

One method you could try is to add this to your theme's stylesheet, or to make a new CSS file named "custom.css" and put it in the styles/coelesce/ directory:

Copy to clipboard
#main { display: table; margin: auto; margin-top: 16px; margin-bottom: 3px; width: 1024px} *:first-child+html #c1c2 { margin-left: 0; padding-left: 0}


The width can be whatever you want; the top and bottom margin figures also you can change as you please.

I don't know if this will help with the menu dropdown problem or not, but it is a way to specify a width for the content that seems to work in all browsers. (Actually the testing of this is a little limited, so if it doesn't work, let us know.)

-- Gary


OK sorry for the delay I got busy and distracted with other projects, I just wanted to report that so far so good…I tested it with Firefox, IE and Safari and it works great, I have changed the size from 1024px to 800px and everything is good to go if using the original coelese. Initially I had the coeles all customized and when I put this code all of a sudden my menu just vanished. I restored the original coeles back in and everything worked OK!!
Now I am going to start re-customize the theme and I will post what happens and at what point it disappears.

Now I have a little mystery; right now the menu is showing under the Site Header, this menu was created because I choose the option to customize the website as a business when installing it for the first time. For sure I am going to leave the menu on that location but just to learn what I wanted to do is to remove it and put it on the left side of the page but I have not been able to do it. The problem I see is that I cannot find this menu under Modules only under Menus, right now the only thing I can do is to delete it from Menus but then how do I recreate it and put it up there again? By the way the Top Bar under General Layout of Look and Feel us currently unchecked and the menu is still up there!!

Rob


Right, the menu isn't automatically a module; you have to create a new module and assign the menu to it, as the example syntax shows at the bottom of the page for making user modules. Don't delete it from Menus, though. The menu admin page is for all menus, whether at the page top or in side-column modules.

About the menu still showing at the top, I take it you didn't use any other means to put a menu up there (I mean no menu tag in custom code input on the Look and Feel admin page, etc.). If the only way the menu could be there is that it was assigned as the site menubar, then I don't know why it still displays after being turned off, unless because of caching. Be sure to clear the tiki cache (tiki-admin_system.php) and your browser cache.

-- Gary