forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: karice on November 12, 2008, 05:37:06 pm

Title: Page not centered with IE
Post by: karice on November 12, 2008, 05:37:06 pm
Hello everybody,

I am using the Chaoctisoul theme and I have a trouble with it under IE. The page is not centered !
With Firefox or other everything is fine !

I tried to modify the style.css file

Code: [Select]
#page {
padding: 0;
width: 860px;
margin-top: 25px;
margin-right: auto;
margin-bottom: 25px;
margin-left: auto;

But if I modify
Code: [Select]
margin-left: auto the page is not centered for the other browser and it depends of the screen resolution  :(

Could you help me please ?

Thank you in advance.

Fabrice.

www.fhoto.123.fr (http://www.fhoto.123.fr)
Title: Re: Page not centered with IE
Post by: Gizmo on November 12, 2008, 11:48:37 pm
It looks centered to me on FF & Safari on Mac and IE 7.x on XP. What browser versions and resolutions are you having issues with?
Title: Re: Page not centered with IE
Post by: François Keller on November 13, 2008, 07:30:00 am
for me withe on windows Vista  with IE7 it's not centered. Maybe a problem with the  banner
Title: Re: Page not centered with IE
Post by: karice on November 13, 2008, 07:55:25 am
It looks centered to me on FF & Safari on Mac and IE 7.x on XP. What browser versions and resolutions are you having issues with?

You are right on FF + Vista it is ok, but on IE 7 + Vista, it is not centered !

Fabrice.
Title: Re: Page not centered with IE
Post by: Joachim Müller on November 13, 2008, 08:08:32 am
Maybe an issue with IE's quirks mode? There is a line of whitespace in the output, before the doctype declaration that doesn't exist in template.html (http://www.fhoto.123.fr/themes/chaoticsoul/template.html). Actually, it's just a line break, but you should try to determine where it comes from.
Another possible culprit that should be easily fixable is the line<html dir="{LANG_DIR}"> in template.html that actually should read
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{LANG_DIR}">
I can't test more, as I don't have IE available here.
Title: Re: Page not centered with IE
Post by: karice on November 13, 2008, 09:04:30 am
I discovered that it works on IE 6 on XP !

Fabrice.
Title: Re: Page not centered with IE
Post by: Gizmo on November 13, 2008, 12:18:26 pm
I don't have Vista (and never will) but it seems maybe this is also causing some of the problem. Can you check the CPG demo site (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=chaoticsoul) for this theme and see if it displays correctly for you in Vista and IE7? Thanks.
Title: Re: Page not centered with IE
Post by: François Keller on November 13, 2008, 01:23:26 pm
i've checked this before aswering to karice and yes on the demo site and on my local test bed this theme run without problems.
Title: Re: Page not centered with IE
Post by: karice on November 13, 2008, 08:22:09 pm
I don't have Vista (and never will) but it seems maybe this is also causing some of the problem. Can you check the CPG demo site (http://coppermine-gallery.net/demo/cpg14x/index.php?theme=chaoticsoul) for this theme and see if it displays correctly for you in Vista and IE7? Thanks.

Vista + IE7 + Chaoticsoul Demo = OK !!!
Vista + IE7 + My Chaoticsoul = NOK
XP + IE7 + My Chaoticsoul = NOK

My problem is maybe due to a modification I have done, but I do not know what kind of modification I did  :-\

Fabrice.
Title: Re: Page not centered with IE
Post by: Gizmo on November 13, 2008, 09:09:23 pm
Since I'm not running Vista there is little I can do but try these ideas:

1. If you edited the style.css file, upload a clean unedited version and see if the issue is with your changes.
2. Zip up your theme and add it to your next post.
Title: Re: Page not centered with IE
Post by: karice on November 14, 2008, 12:26:38 pm
Since I'm not running Vista there is little I can do but try these ideas:

2. Zip up your theme and add it to your next post.

please, find the zip file attached.

thank you.
Title: Re: Page not centered with IE
Post by: karice on November 14, 2008, 06:32:33 pm
Since I'm not running Vista there is little I can do but try these ideas:

1. If you edited the style.css file, upload a clean unedited version and see if the issue is with your changes.

it does not work  :-\

Fabrice.