Project / Support Center
Welcome, Guest. Please login or register. August 08, 2020, 04:08: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Open Source Topics  |  OS Commerce  |  Topic: remove annoying header line 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: remove annoying header line  (Read 8539 times)
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!
Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Open Source Topics  |  OS Commerce  |  Topic: remove annoying header line « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!