phplayers menu on the right - how do I make the sub menus go left?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
mickoates

phplayers menu on the right - how do I make the sub menus go left?

Post by mickoates »

Can anyone help? I want to place the phplayers menu (vertical) on the right, and have the sub-menus appear to the left so they don't increase the width of my pages. I just can't seem to find the place to do it.
jah
Forum Members
Forum Members
Posts: 147
Joined: Thu Dec 30, 2004 9:09 am
Location: Norway

Re: phplayers menu on the right - how do I make the sub menus go left?

Post by jah »

I don't know about the template you are using. You need a template with a rightColumn where you insert your phplayers tag, and the content tag should be in a column to the left (you can use divs or tables for this layout).

Next you should override the default CSS setting for phpLayers (e.g. put them in the stylesheet part of your template). The default CSS is found in  \modules\PHPLayers\phplayers.

I think you only have to experiment with these two for the submenu:
I have not tried this myself so I cannot give you any values.

.submenu {
position: absolute;
left: 0;                   
top: 0;
visibility: hidden;
}

.subframe {
position: relative;
display: block;
background-color: #EDF2F5;
border: 1px solid #64879d;
}


Jon
mickoates

Re: phplayers menu on the right - how do I make the sub menus go left?

Post by mickoates »

Many thanks for this - led me in the right direction
Post Reply

Return to “Developers Discussion”