marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Centering CPShop Template in Browser

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Centering CPShop Template in Browser »
Welcome, Guest. Please Login or Register.
12/15/17 at 06:28:41
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Centering CPShop Template in Browser
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Centering CPShop Template in Browser  (Read 640 times)
Al
Green Dragon
*

Posts: 4



Go Scots!
   

WWW E-Mail
Centering CPShop Template in Browser
« on: 08/19/08 at 16:32:26 »
Reply with quote Modify message

My site is centered in the browser.  So while I'm working with CPShop and have my site's CSS in my template, I would think my sitecontainer settings would be in effect.  That's not the case.  I see all the CPShop pages get automatically set to the left most side of the browser.  I see some sites here have their CPShop pages centered.  Could you clue me in on the style I need to modify?

Thanks!

Al
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Centering CPShop Template in Browser
« Reply #1 on: 08/19/08 at 23:19:57 »
Reply with quote Modify message

That's totally going to depend on your template.

Can we see the actual template you're trying to center?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Al
Green Dragon
*

Posts: 4



Go Scots!
   

WWW E-Mail
Re: Centering CPShop Template in Browser
« Reply #2 on: 08/20/08 at 09:50:26 »
Reply with quote Modify message

Sure ...

My site is:  www.almccoy.com

My CP shop isn't available from my website yet, but you can hit it at:  

http://www.almccoy.com/cgi-bin/store/cpshop.cgi/orangetabby

My template is pretty simple.  I use SSI to include a header, left nav bar, and footer.  The 'sitecontainer' is in my CSS and is centered.

This is the content of my CPSHOP Template:

<!--------------------------------------------------------------------------------------
VARIABLES:
   Variables appear in this format: <[variablename]>

AVAILABLE VARIABLES:
   Find the complete list here:
     http://cgi.marty.net/go2/site/view/marty/108
---------------------------------------------------------------------------------------->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title><[title]></title>
<meta name="keywords" content="<[keywords]>">
<meta name="description" content="<[description]>">
<link href="http://www.almccoy.com/style.css" type="text/css" rel="STYLESHEET">
</head>
<div class="sitecontainer">
      <!--#include file="header.html" -->
     
      <table cellpadding="0" cellspacing="0">
        <tbody valign="top">
          <tr valign="top">
         <td class="left-menu" style="border-right: 1px solid #000;" valign="top"><!--#include file="leftnav.html" --></td>
         <td width="674">            
                 <[content]>                  
             </td>
          </tr>
        </tbody>
      </table>
    <!--#include file="footer.html" -->
</html>


==============
This is the entry for my style sheet - the container around the entire site:

/*
* Container surrounding the entire site.
*/
.sitecontainer {
     background: #fff;
     padding: 0;
     margin:20px auto;
     text-align:left;
     width: 800px;
     border: 1px solid #000;
}

Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Centering CPShop Template in Browser
« Reply #3 on: 08/20/08 at 10:45:54 »
Reply with quote Modify message

Try:

.sitecontainer {
     background: #fff;
     padding: 0;
       position: relative;
     text-align:left;
     width: 800px;
     border: 1px solid #000;
     margin-left: 50%;
       left: -400px;

}
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Al
Green Dragon
*

Posts: 4



Go Scots!
   

WWW E-Mail
Re: Centering CPShop Template in Browser
« Reply #4 on: 08/21/08 at 11:49:20 »
Reply with quote Modify message

Marty,

That did it!!!!!

Thank you so much.

Al
Logged
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.