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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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"> 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"> Code: table#wrapper {
border: 3px ridge black;
}
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
| |||
| |||
| How would I go about moving the bodywidth to the stylesheet? |
|
#4
| |||
| |||
| Quote:
In mainpage.tpl.php, near the top: Code: <!-- header //--> <div class="fixcenter"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> Code: </div> <!-- footer_eof //--> </body> </html> Code: .fixcenter {
width: 760px;
border: solid; border-width: 1px;
background: #d6eaf0;
color: #000000;
margin: auto;
text-align: left;
}
|
|
#5
| |||
| |||
| Quote:
Code: <!-- All TS references added by TemplateShopper.com November 2003 --> <table id="wrapper" cellspacing="0"> Code: #wrapper {
width: 750px;
border: 3px ridge black;
margin: auto;
text-align: left;
}
Code: body {
text-align: center;
}
|
| Thread Tools | |
| |
| ||||
| 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 |