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: Pictures are not centered in Chrome and FF  (Read 7812 times)

0 Members and 1 Guest are viewing this topic.

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Pictures are not centered in Chrome and FF
« on: March 26, 2011, 11:43:46 pm »


Hi there

Today I realized that the pictures (displayimage.php) are not centered. I use the theme curve centered.

This happens with Chrome and Firefox (both in newest version). IE 9 can center the pictures.

Here is a link: http://orst.ch/copper/displayimage.php?album=653&pid=45784#top_display_media

Two screenshots are attached. Can someone help me to center the pictures in all three browsers?

Thanks!  :)

hama

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

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: Pictures are not centered in Chrome and FF
« Reply #1 on: March 27, 2011, 02:03:05 am »

Not sure why this is happening.  I've tried in Firefox  3.1.16, Firefox 4  and IE8, and no problem.

Does it do this for you when viewing that theme in the demo? (Demo Link top of screen).
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Pictures are not centered in Chrome and FF
« Reply #2 on: March 27, 2011, 11:15:45 am »


Hi

No, it does not do this for me when viewing that theme in the demo ... (Demo Link top of screen).  :'(

Some month ago Jeff Bailey helped me to make the theme curve centered (I asked in the paid zone).

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

Maybe it has to to with different CSS of my website?

I attached "my" theme curve centered, called "orst".

P.S.: I did not change something in displayimage.php.

hama

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

lurkalot

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 949
  • +Tinyportal Support team.
Re: Pictures are not centered in Chrome and FF
« Reply #3 on: March 27, 2011, 12:11:43 pm »

So are you saying you have a customised version of the theme in the demo. I mean different from the one in the demo?

If not, then download and install that theme, or try just that file from the theme, and see if it works. Keep a backup of your original first.
Logged
Running SMF 2.1.4  / Tinyportal 3.0.0, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Pictures are not centered in Chrome and FF
« Reply #4 on: March 27, 2011, 12:51:08 pm »


Good news for Coppermine, bad news for me: The original theme "curve centered" (I just downloaded it) centers the pictures in displayimage.php correct.

So it must be a problem between the two css-files of my main website and my gallery site.

I know now a bit more but if I can fix that, I don't know.

Thanks anyway for your help!

hama

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

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Pictures are not centered in Chrome and FF
« Reply #5 on: March 27, 2011, 08:22:52 pm »

Have you fixed it? It appears centered to me.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Pictures are not centered in Chrome and FF
« Reply #6 on: March 27, 2011, 08:37:02 pm »


Hi Phill

No, I couldn't fix it, it is still centered with IE8 and IE9 but not with FF4 and Chrome10.

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: Pictures are not centered in Chrome and FF
« Reply #7 on: March 31, 2011, 03:57:25 pm »

Manually changing the table width from 600px to 100% (with the help of Firebug) does align the image centered on your website to me. So you could try to change that value in your config.
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Pictures are not centered in Chrome and FF
« Reply #8 on: March 31, 2011, 05:52:37 pm »


Hi André

I couldn't find the 600px somewhere in the style.css of "my" theme.

So I changed

Code: [Select]
.maintable {
    margin-top: 1px;
    margin-bottom: 1px;
}

to

Code: [Select]
.maintable {
    margin-top: 1px;
    margin-bottom: 1px;
    width: 100%;
}

and now it works in all three browsers IE, Chrome and FF.

Thanks for the solution!  :)

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: Pictures are not centered in Chrome and FF
« Reply #9 on: March 31, 2011, 06:04:20 pm »

It's a setting in the config (admin.php). You should find it very easily by just searching for the value '600'.
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Pictures are not centered in Chrome and FF
« Reply #10 on: March 31, 2011, 07:01:29 pm »


Hi André

Ok, now I understand it ... Through config to admin.php, not by ftp ... ::)

"Width of the table for picture display (pixels or %)". There was 600 and I changed it to 100%.

It works, thanks!

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.021 seconds with 20 queries.