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
-
Is there a chance to center the menu bar in curve?
--> http://orst.ch/copper/index.php
Thanks for some help! :)
hama
-
Try to google 'css center div' and apply it to the css classes cpg_header_block_inner / cpg_header_block_outer
-
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 (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
-
It's harder than I thought. This code forces the menu buttons to always align to the left:
.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).
-
Hi André
No problem.
Maybe I'll use an 'old style' menu ...
Sincerely
hama
-
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
-
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