Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How to center the menu bar in curve?  (Read 7383 times)

0 Members and 1 Guest are viewing this topic.

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
How to center the menu bar in curve?
« 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

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How to center the menu bar in curve?
« Reply #1 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
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: How to center the menu bar in curve?
« Reply #2 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
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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How to center the menu bar in curve?
« Reply #3 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).
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: How to center the menu bar in curve?
« Reply #4 on: September 03, 2010, 04:24:32 pm »

Hi André

No problem.

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

Sincerely

hama

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

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: How to center the menu bar in curve?
« Reply #5 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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: How to center the menu bar in curve?
« Reply #6 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

hama

Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.