admin
Guest
|
 |
« on: September 04, 2006, 11:49: AM » |
|
When changing background and boxes colours, a thin line of a different color may show just below the header. To get rid of it, just edit the file .../catalog/includes/header.php with any text editor: from <table border="0" width="100%" cellspacing="0" cellpadding="1"> to <table border="0" width="100%" cellspacing="0" cellpadding="0"> (line 61 in the original header.php file from oscommerce-2.2ms2) Explanation: Each page is composed by several tables. The cellpadding indents the content inwardly a number of pixels. This leaves the background colour of the table exposed in the gap between the border of the table and the indented content. The line may look thinner or broader depending on the browser. Since the default of some browsers are "1" for cellpadding and "2" for cellspacing, you may set the values of both attributes to "0" for total certainty. Note: Similar lines may show in different areas of the pages, and tweaking the pixels numbers may solve the problem; the only additional task is to find the table and .php file leaking the line/s. Disclaimer: This tip is provided without any liability whatsoever. Save backup files before editing or, rather, at all times!
|