How to center the menu bar in curve? How to center the menu bar in curve?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to center the menu bar in curve?

Started by hama, August 28, 2010, 12:22:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hama


Is there a chance to center the menu bar in curve?

--> http://orst.ch/copper/index.php

Thanks for some help!  :)

hama

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Αndré

Try to google 'css center div' and apply it to the css classes cpg_header_block_inner / cpg_header_block_outer

hama


Hi André

Thanks for your support!

I need a little bit more ...  ::)

With


width: 300px;
margin-left: auto;
margin-right: auto;


it works when I'm not logged in. While I'm logged as a normal user the width is too small ...

http://orst.ch/copper/index.php
Username: test
Password: goforit

When I widen the width it doesn't work anymore and everything is at left again.

That's the whole css-snippet of "cpg_header_...":


#cpg_header_block_outer  {
    padding-left: 20px;
}

#content #cpg_header_block_outer ul li {
   list-style: none;
}

#cpg_header_block_outer div.cpg_header_block_inner {

   width: 300px;
   margin-left: auto;
   margin-right: auto;
   display: block;
   padding-top: 5px;
   padding-right: 20px;
   padding-bottom: 10px;
   padding-left: 0px;
   /* min-height: 95px; */
}


Sincerely

hama
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Αndré

It's harder than I thought. This code forces the menu buttons to always align to the left:
Quote.dropmenu li {
    float: left;
    position: relative;
    padding: 0;
    margin: 0;
}
If you change that line, the menu get's messed up. I cannot help you any further. I'm afraid that you have to create the drop-down menu from scratch if you want to center it (or use the 'old style' menu from any other theme).

hama

Hi André

No problem.

Maybe I'll use an 'old style' menu ...

Sincerely

hama

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

hama

Quote from: hama on September 03, 2010, 04:24:32 PM

Maybe I'll use an 'old style' menu ...


Hi André

Another idea is to ask a freelancer and pay him.

At the end he can give the "centered curve theme" to the community and other users can profit.

Maybe I'll do it this way.  ;)

hama
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

hama

Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!