Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

displaying website in the center of browser...


babarmughal

Recommended Posts

You could edit the files like this:

 

1) add text-align center (needed for some I.E. versions, centering bug) to the body

<body style="text-align: center;">

 

2) centering for most browsers (without center bug), setting width and restore the text alignment

add a div wrapper around all pages

 

<div style="margin: 5px auto; width: 800px; text-align: left;">
all osC HTML code here
</div>

 

You have to do this for all catalog files (exept the stylesheet of course), if you installed the BTS (or also STS?), one file (templates/main_page.tpl.php) will do the trick. Actually the BTS uses a fixed width centered template by default.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...