forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: hama on August 28, 2010, 12:22:15 am

Title: How to center the menu bar in curve?
Post by: hama on August 28, 2010, 12:22:15 am

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

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

Thanks for some help!  :)

hama

Title: Re: How to center the menu bar in curve?
Post by: Αndré on August 30, 2010, 04:51:57 pm
Try to google 'css center div' and apply it to the css classes cpg_header_block_inner / cpg_header_block_outer
Title: Re: How to center the menu bar in curve?
Post by: hama on September 01, 2010, 10:54:21 pm

Hi André

Thanks for your support!

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

With

Code: [Select]
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 (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_...":

Code: [Select]
#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
Title: Re: How to center the menu bar in curve?
Post by: Αndré on September 03, 2010, 08:53:56 am
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).
Title: Re: How to center the menu bar in curve?
Post by: hama on September 03, 2010, 04:24:32 pm
Hi André

No problem.

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

Sincerely

hama

Title: Re: How to center the menu bar in curve?
Post by: hama on September 03, 2010, 05:36:37 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
Title: Re: How to center the menu bar in curve?
Post by: hama on September 05, 2010, 06:38:49 pm

Jeff created the new theme. It's called curve_centered.

--> http://forum.coppermine-gallery.net/index.php/topic,66915.0.html (http://forum.coppermine-gallery.net/index.php/topic,66915.0.html)

hama