Guest Posted September 24, 2010 Posted September 24, 2010 Hi I have recently altered code to have the shop center itself.With the following Replace the following code: --------------------------- BODY { background: #ffffff; color: #000000; margin: 0px; } with: ----- BODY { text-align: center; background: #ffffff; color: #000000; margin: 0px; } .fixcenter { width: 910px; border: solid; border-width: 1px; background: #ffffff; color: #000000; margin: auto; margin-top: 3px; text-align: left; } 2. On-page changes: In /catalog/includes/header.php ------------------------------- immediately below this piece of code if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> add <div class="fixcenter"> In catalog/includes/footer.php ------------------------------ Immediately below the closing php tag ?> add this </div> However when in Firefox and clicking on either "My Account" or "Check Out" the shop size "shrinks about 20/35px Im not sure but I think I read somewhere that in the CSS it needs to have added, something to do with HTML...... It works fine in IE. Anyone any suggestions please, as its most frustrating. Many thanks Grandpa
satish Posted September 24, 2010 Posted September 24, 2010 you want to align site in center so you will have change only in body class.No need to create class fixcenter. Do and check following code. BODY { width:910px; background: #ffffff; color: #000000; margin: 0px auto; } or http://www.oscommerce.com/community/contributions,266 Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Guest Posted September 25, 2010 Posted September 25, 2010 you want to align site in center so you will have change only in body class.No need to create class fixcenter. Do and check following code. BODY { width:910px; background: #ffffff; color: #000000; margin: 0px auto; } or http://www.oscommerce.com/community/contributions,266 Satish Thanks for that. Changed as suggested, but still have the problem I think it must be something to do with my Firefox browser, as its all OK in IE. I couldn't find http://www.oscommerce.com/community/contributions,266 Many thanks Grandpa
a.forever Posted September 25, 2010 Posted September 25, 2010 The correct link that satish was trying to point you to was http://addons.oscommerce.com/info/266 It would be helpful to actually see your site. I saw you're using the fixed width with CSS contribution, which I've used myself. I found it better to modify its instructions to the following: In header.php, add <center><div class="fixcenter"> and in footer.php </div></center> and change CSS to: .fixcenter { width: 910px; border: solid; border-width: 1px; background: #ffffff; color: #000000; margin: auto; margin-top: 20px; text-align: left; }
germ Posted September 25, 2010 Posted September 25, 2010 If you're still working on the kidz***** store you should know it's beeen hacked. Hack files in the images folder goog1e4a92238c351138.php goog1ecab25c6d7d426f.php goog1ee681da0b83248.php How to Secure Your Site 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 >
Guest Posted September 25, 2010 Posted September 25, 2010 If you're still working on the kidz***** store you should know it's beeen hacked. Hack files in the images folder goog1e4a92238c351138.php goog1ecab25c6d7d426f.php goog1ee681da0b83248.php How to Secure Your Site Hi Many thanks for that. I am extremely new to all this, and rely pretty much on help that you guys unselfishly give. Ive just deleted the files you referred to , I suppose that's all I need to do. That'll teach me for not renaming the admin file done now tho. The prob (of the site changing size) seems to be with my browser, as Ive tried on another computer using exactly the same browser, and all works fine. So maybe I need to either live with the problem or, completely reinstall. Many thanks Grandpa
germ Posted September 25, 2010 Posted September 25, 2010 Check your images folder a few times in the next few days. If no more PHP files appear then you're probably out of the woods. 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 >
germ Posted September 25, 2010 Posted September 25, 2010 One thing I forgot... And be sure no similarly named files (or other hack files) exist in the root folder. 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 >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.