Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Menu alignment and page width troubles  (Read 2818 times)

0 Members and 1 Guest are viewing this topic.

Klop

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Menu alignment and page width troubles
« on: August 11, 2007, 09:48:20 am »

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?
« Last Edit: August 11, 2007, 07:05:33 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Menu alignment and page width troubles
« Reply #1 on: August 11, 2007, 03:46:58 pm »

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

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

Code: [Select]
#SUB_MENU {
        width:100%;
        padding: 0 20px;
}

Please try to keep to 1 question per thread.
Logged

Klop

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Menu alignment and page width troubles
« Reply #2 on: August 11, 2007, 06:54:57 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. :)
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.