Menu alignment and page width troubles Menu alignment and page width troubles
 

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

Menu alignment and page width troubles

Started by Klop, August 11, 2007, 09:48:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Klop

Guys, sorry if this is a stupid question, but I could not find anything similar discussed already.

I have slightly modifued Project VII theme (http://el-camino.ru/cpg1412/index.php) and faced the following:

1. The menu buttons are aligned left, while the whole gallery is centered. The header above is fine wherever it is, but I think the buttons are better be centered like the gallery. How can I center it?

2. On small screens (I have 800*600) at home the gallery has a horizontal scrollbar. On bigger resolutions everything is fine. It looks like there is an element wider than 800 px somewhere. I tried to find it, but could not. There is nothing on the page wider than the screen. The only thing is the background for the menu, buy it is in fact a small pic stretched. I looked and seemed to find #SYS_MENU in style.css with 800px width, but changing it did not help...

Apparently since there is no such problem with higher resolutions, there is just something wider than 800px, not something with, say, 130% width, otherwise the problem would appear everywhere.

What is so wide there?

Nibbler

For 1, see http://forum.coppermine-gallery.net/index.php?topic=45773.0

For 2, there is an element with 100% width plus padding


#SUB_MENU {
        width:100%;
        padding: 0 20px;
}


Please try to keep to 1 question per thread.

Klop

Quote from: Nibbler on August 11, 2007, 03:46:58 PM
Please try to keep to 1 question per thread.

Sorry for that. I should have thought better. Just did not want to create a dozen small topics.

Anyway, thanks for the patience and help. Everything is great now. The scrollbar is gone and the alignment is perfect. However I stiil have no clue why if the menu width was 100% plus 20px margin did the scrollbat disappear at higher resolutions? It would have been wider than the screen anyway.

Well, whatever, thanks and best of luck. :)