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

Need help with Centering issue

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-03-2008, 03:22 PM
  DezineJunkie's Avatar 
DezineJunkie DezineJunkie is offline
 

Senior Member
  
Join Date: Jan 2008
Posts: 174
 

Question Need help with Centering issue

I have set the style of Container and DialogBox in my stylesheet to text-align: center; . My goal is to have all centered at 800-850px wide. The page will not budge it is positioned Flush Left. (about 800 px wide) how do i get it to shift center?

TABLE.Container {
WIDTH: 800px;
BACKGROUND-COLOR: #ffffff
margin-right:5%;
margin-left: 5%;
background-position: center;
TD.Container { height: 90%; vertical-align: top; }

{* $Id: rectangle_top.tpl,v 1.25 2006/02/07 08:09:51 max Exp $ *}
<table class="Container" cellpadding="0" cellspacing="0" width="{$width|default:"800px"}">
<tr><td class="Container">

Dialog box
*/
TABLE.DialogBox {
WIDTH: 100%;
HEIGHT: 100%;
VERTICAL-ALIGN: top;
}
TD.DialogBox {
BACKGROUND-COLOR: #fff;
TEXT-ALIGN: center;
PADDING: 10px;
}
.DialogBorder {
BACKGROUND-COLOR: #9E9780;
HEIGHT: 100%;
PADDING: 0px;
}
TD.DialogTitle {
COLOR: #130A2E;
FONT-WEIGHT: bold;
FONT-SIZE: 11px;
BACKGROUND-COLOR: #9E9780;
VERTICAL-ALIGN: bottom;
HEIGHT: 15px;
PADDING-TOP: 0px;
PADDING-BOTTOM: 0px;
PADDING-LEFT: 10px;
PADDING-RIGHT: 0px;
TEXT-ALIGN: left;
}
FONT.DialogTitle {
COLOR: #9E9780;
FONT-WEIGHT: bold;
FONT-SIZE: 11px;
VERTICAL-ALIGN: bottom;
HEIGHT: 15px;
TEXT-ALIGN: left;
MARGIN-LEFT: 10px;
}

/*
Dialog info box
*/
TABLE.DialogInfo {
WIDTH: 85%;
TEXT-ALIGN: center;
}
.DialogInfoTitle {
COLOR: #FFFFFF;
FONT-WEIGHT: bold;
FONT-SIZE: 11px;
VERTICAL-ALIGN: bottom;
TEXT-ALIGN: left;
HEIGHT: 15px;
PADDING-TOP: 0px;
PADDING-BOTTOM: 0px;
PADDING-LEFT: 5px;
PADDING-RIGHT: 5px;
}
__________________
X-CART Pro V.4.3.0
PHP version 5.2.11
MySQL version 5.0.81
Architecture x86_64
Apache version 2.2.14 (Unix)mod_ssl/2.2.14
Operating System: Linux
Dedicated Ip
cPanel Pro 1.0 (RC1)
cPanel Version 11.24.5-RELEASE
Modules: DL Expander, DL Products, One Page Checkout, Dynamic Images,
Multicolumn Recommends, Narrow by Search, Random Products Tabs.
X-AOM, SALES-N-STATS 1.3 , X-Offers-4.1.9, X-Magnifier41x, X-Fancy Categories,
X-RSS Feeds, Static Meta Tags , X-AJAX Rating System v4.1


Reply With Quote
  #2  
Old 02-03-2008, 03:35 PM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Need help with Centering issue

Quote:
Originally Posted by DezineJunkie
I have set the style of Container and DialogBox in my stylesheet to text-align: center; . My goal is to have all centered at 800-850px wide. The page will not budge it is positioned Flush Left. (about 800 px wide) how do i get it to shift center?

TABLE.Container {
WIDTH: 800px;
BACKGROUND-COLOR: #ffffff
margin-right:5%;
margin-left: 5%;
background-position: center;
TD.Container { height: 90%; vertical-align: top; }

{* $Id: rectangle_top.tpl,v 1.25 2006/02/07 08:09:51 max Exp $ *}
<table class="Container" cellpadding="0" cellspacing="0" width="{$width|default:"800px"}">
<tr><td class="Container">

Try changing
<table class="Container" cellpadding="0" cellspacing="0"
to
<table class="Container" align="center" cellpadding="0" cellspacing="0"
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #3  
Old 02-04-2008, 12:33 PM
  DezineJunkie's Avatar 
DezineJunkie DezineJunkie is offline
 

Senior Member
  
Join Date: Jan 2008
Posts: 174
 

Default Re: Need help with Centering issue

Quote:
Originally Posted by photo
Try changing
<table class="Container" cellpadding="0" cellspacing="0"
to
<table class="Container" align="center" cellpadding="0" cellspacing="0"

Thank you- i made the change and my admin changed centered
BUT the site page did not? so no clue where the error is unless
my vert menue or fancy cat is screw up
__________________
X-CART Pro V.4.3.0
PHP version 5.2.11
MySQL version 5.0.81
Architecture x86_64
Apache version 2.2.14 (Unix)mod_ssl/2.2.14
Operating System: Linux
Dedicated Ip
cPanel Pro 1.0 (RC1)
cPanel Version 11.24.5-RELEASE
Modules: DL Expander, DL Products, One Page Checkout, Dynamic Images,
Multicolumn Recommends, Narrow by Search, Random Products Tabs.
X-AOM, SALES-N-STATS 1.3 , X-Offers-4.1.9, X-Magnifier41x, X-Fancy Categories,
X-RSS Feeds, Static Meta Tags , X-AJAX Rating System v4.1


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 11:23 AM.

   

 
X-Cart forums © 2001-2020