osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Installation

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-13-2005, 08:09 AM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
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)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 04-13-2005, 11:42 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 04-13-2005, 12:51 PM
Member
 
Join Date: Jan 2005
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
adam71o
Default RE: Add border around store

How would I go about moving the bodywidth to the stylesheet?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 04-13-2005, 08:23 PM
Member
 
Join Date: Dec 2004
Posts: 75
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
bdneuman
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;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-14-2005, 11:37 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax