dirtbikeworld Posted January 17, 2009 Share Posted January 17, 2009 Hi, I have recently added a contribute called "Fixed Width Site With CSS" which allows you not only to fix the width of your shop but also change the background colour. The problem I keep getting is when I change the background colour say from white to black it works but then sometimes it will go back to white. For example the homepage will have a black background but when I refresh the page sometimes the background will be white. Think I need to change something else somewhere but not sure where, any help would be most appreciated. Hope this makes sense Alex Link to comment Share on other sites More sharing options...
germ Posted January 18, 2009 Share Posted January 18, 2009 Stylesheet error: .fixcenter { width: 758px; border: solid; border-width: 1px; background: #ffffff; color: #000000; margin: auto; margin-top: 20px; text-align: left; } [b]} [color="#FF0000"]<---- DELETE THIS![/color][/b] That's a place to start. Sometimes after changing the stylesheet you have to hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet. This works with IE and Firefox. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted January 18, 2009 Share Posted January 18, 2009 Looking at your HTML source: [color="#FF0000"]<table width="760" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="outline">[/color] <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Your Title is Here</title> <base href="http://www.yoursite.com/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body> Something needs done with the code in red You should have nothing in the source before this line: <!-- footer //--> <br> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="center" class="smallText"> [color="#FF0000"][b]</div>[/b][/color] osCommerce Online Merchant Copyright © 2008 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br> osCommerce provides no warranty and is redistributable under the <a href="http://www.fsf.org/licenses/gpl.txt" target="_blank">GNU General Public License</a> </td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="5"></td> </tr> <tr> <td align="center" class="smallText">Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a></td> </tr> </table> <!-- footer_eof //--> You need to move the </div> tag to the END of the footer. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
dirtbikeworld Posted January 18, 2009 Author Share Posted January 18, 2009 Hi Germ, Thanks for your help these steps have solved the problem. Alex Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.