X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need help with Centering issue (https://forum.x-cart.com/showthread.php?t=37291)

DezineJunkie 02-03-2008 03:22 PM

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;
}

photo 02-03-2008 03:35 PM

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"

DezineJunkie 02-04-2008 12:33 PM

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


All times are GMT -8. The time now is 03:13 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.