osCmax v2.5 User Manual
Results 1 to 5 of 5

Add border around store

This is a discussion on Add border around store within the osCMax v1.7 Installation forums, part of the osCmax v1.7 Forums category; http://adamsville.net/shop is my store. I am trying to add a 3px black border around the entire body to look like ...

      
  1. #1
    Active Member
    Join Date
    Jan 2005
    Posts
    101
    Rep Power
    0


    Default Add border around store

    http://adamsville.net/shop is my store.

    I am trying to add a 3px black border around the entire body to look like this (doctored image)


    Any idea how to add that border (just around the outside)?

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default RE: Add border around store

    There are many ways to do that, I can tell how I would do it.
    Unfortunately the creator of the template forgot to add some css classes and/or id's, so I would fist add an id to the outer table.

    change (in the main_page.tpl.php of your template)
    Code:
    <!-- All TS references added by TemplateShopper.com November 2003
    TS: 750 pixel centered table for all pages of store -->
    <table align="center" width="750" border="0"  cellpadding="0" cellspacing="0">
    to
    Code:
    <!-- All TS references added by TemplateShopper.com November 2003
    TS: 750 pixel centered table for all pages of store -->
    <table id="wrapper" align="center" width="750" border="0"  cellpadding="0" cellspacing="0">
    and ad:
    Code:
    table#wrapper {
    border: 3px ridge black;
    }
    to the stylesheet

    For other border styles go visit w3schools.com and do a search for border

    As a matter of fact I would at least move the width to the stylesheet too for example, this makes it a lot easyer and safer if you want to change it later, no need to edit the template itself anymore.

  3. #3
    Active Member
    Join Date
    Jan 2005
    Posts
    101
    Rep Power
    0


    Default RE: Add border around store

    How would I go about moving the bodywidth to the stylesheet?

  4. #4
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    Default Re: RE: Add border around store

    Quote Originally Posted by adam71o
    How would I go about moving the bodywidth to the stylesheet?
    I use this for centering my shop:

    In mainpage.tpl.php, near the top:

    Code:
    <!-- header //-->
    <div class="fixcenter">
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    Then, at the end of the file:

    Code:
    </div>
    <!-- footer_eof //-->
    </body>
    </html>
    In the stylesheet.css, define the "fixcenter" class:

    Code:
    .fixcenter {
      width: 760px;
      border: solid; border-width: 1px;
      background: #d6eaf0;
      color: #000000;
      margin: auto;
      text-align: left;
    }
    Brian Neuman
    Webmaster
    www.honeybeadjewelry.com

  5. #5
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default Re: RE: Add border around store

    Quote Originally Posted by adam71o
    How would I go about moving the bodywidth to the stylesheet?
    Code:
    <!-- All TS references added by TemplateShopper.com November 2003  -->
    <table id="wrapper" cellspacing="0">
    and change the new stylesheet setting to (alike bdneumans stylesheet):
    Code:
    #wrapper {
      width: 750px;
      border: 3px ridge black; 
      margin: auto;
      text-align: left;
    }
    and to make the centering als work for several buggy IE versions you can also add:
    Code:
    body {
      text-align: center;
    }
    to the stylesheet

Similar Threads

  1. border around images and subcategories
    By altenter in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 11-07-2005, 12:15 PM
  2. Box Border Problem
    By Sinful in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-15-2004, 04:31 AM
  3. somehow I lost the ablity to add a border to one box?
    By Kristine in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 03-25-2004, 07:33 AM
  4. how do I change the colour of the box border?
    By jloyzaga in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 10-23-2003, 01:13 PM
  5. Box border colour
    By Bah in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 12-31-2002, 07:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •