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)?
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 ...
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)?
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)
toCode:<!-- 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">
and ad: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">
to the stylesheetCode: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.
How would I go about moving the bodywidth to the stylesheet?
I use this for centering my shop:Originally Posted by adam71o
In mainpage.tpl.php, near the top:
Then, at the end of the file:Code:<!-- header //--> <div class="fixcenter"> <table border="0" width="100%" cellspacing="0" cellpadding="0">
In the stylesheet.css, define the "fixcenter" class:Code:</div> <!-- footer_eof //--> </body> </html>
Code:.fixcenter { width: 760px; border: solid; border-width: 1px; background: #d6eaf0; color: #000000; margin: auto; text-align: left; }
Originally Posted by adam71o
and change the new stylesheet setting to (alike bdneumans stylesheet):Code:<!-- All TS references added by TemplateShopper.com November 2003 --> <table id="wrapper" cellspacing="0">
and to make the centering als work for several buggy IE versions you can also add:Code:#wrapper { width: 750px; border: 3px ridge black; margin: auto; text-align: left; }
to the stylesheetCode:body { text-align: center; }
Bookmarks