Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Centering page in IE

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-04-2010, 04:06 AM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Angry Centering page in IE

I have done all what I can, but nothing happens with my page in IE. It dont will go to the center. I read all the threads about this problem but nowhere was for me the solution. Can somebody help me?
Its very annoying thing.

There is the site: http://webshop.vizipipavasarlas.hu/
And the *.css: http://webshop.vizipipavasarlas.hu/skin1/main.css
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote
  #2  
Old 02-04-2010, 04:42 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Centering page in IE

make this
html,body {
height: 100%;
width: 1000px;
background: #ff5300 url("images/bg_tiled.png");
margin: 0 auto;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
min-width: 1000px;
border: 0px none;
text-align: center;
}
this

html,body {
height: 100%;
width: 100%;
background: #ff5300 url("images/bg_tiled.png");
margin: 0 auto;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;

border: 0px none;
text-align: center;
}

no min-width
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 02-04-2010, 05:22 AM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Default Re: Centering page in IE

This dont work.
I attached a picture what happened with your solution.
Attached Thumbnails
Click image for larger version

Name:	Untitled-3.jpg
Views:	111
Size:	305.9 KB
ID:	1847  
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote
  #4  
Old 02-04-2010, 08:33 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Centering page in IE

try changes in red.

html,body {
height: 100%;
width: 100%;
background: #ff5300 url("images/bg_tiled.png");
margin: 0 auto !important;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
border: 0px none;
text-align: center;
}

/* page container */
#page-container {
min-height: 100% auto;
width: 1000px;
position: relative;
background-color: #ffffff;
text-align: left;
margin: 0 auto !important;
margin-left: auto;
margin-right: auto;
}
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 02-04-2010, 11:59 AM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Default Re: Centering page in IE

Awesome! It works!
I really thank you, this was a big help
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote
  #6  
Old 02-04-2010, 12:28 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Centering page in IE

no problem.

glad I could help.
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 02-04-2010, 12:53 PM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Centering page in IE

Yea I know: Take a look at it in Ie6!
Yes the most talked about, why support it, but it was worth a mention, as the site headers not even viewable in IE6!.....

If you don't care no worries.
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #8  
Old 02-04-2010, 01:13 PM
  pdstudio's Avatar 
pdstudio pdstudio is offline
 

Member
  
Join Date: Dec 2009
Location: Hungary / Sopron
Posts: 28
 

Default Re: Centering page in IE

O shit, I forgot to test it in IE6, again. I see the problem, the header+topmenu+search goes next to the pages right side. Hmm, annoying.
Is there a solution for this problem?
__________________
X-Cart 4.4.4
http://matricamagnes.hu/
Reply With Quote
  #9  
Old 02-04-2010, 01:23 PM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Centering page in IE

Quote:
Originally Posted by pdstudio
O shit, I forgot to test it in IE6, again. I see the problem, the header+topmenu+search goes next to the pages right side. Hmm, annoying.
Is there a solution for this problem?


If I remember rightly you have to play around with altskin.ie6.css

That's one solution, I added more css to my main.css to combat this, some of it Was:
Code:
html,body { height: 100%; background:#b9d3df; text-align: center; padding-top: 2px; font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; } body { /* MSIE 5 doesn't center based on auto left/right margins, but 'text-align:center' does center top-level divs: */ text-align: center; /* Specify a min-width for the body as wide as the 'wrapper' element itself. This prevents negative (i.e. inaccessible) left-margins in narrow browser windows when using Navigator 6+/Mozilla on Win32: */ min-width: 960px; margin-top:0px; margin-bottom:1px; }

With the usual other edits, but I also have an additional container wrap...
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:42 AM.

   

 
X-Cart forums © 2001-2020