Click to See Complete Forum and Search --> : CSS Background Problem


gregmatic
11-04-2003, 02:59 PM
In IE my page looks fine, but in netscape the background color runs all the way off the screen on the right. My stylesheet properties are:

.navbar { background-color: #cccccc; text-align: center; margin-top: 0px; margin-left: 0px; margin-right: 0px; width: 99%; padding: 5px 10px 5px 10px; font-size: large; border: medium solid; border-color: #c0c0c0; }


The Html is:

<p class="navbar">
<a href="index.htm" title="Go to Baumann Electronic Controls Home Page">Home</a> |
<a href="products/products.htm" title="View our Products">Products</a> |
<a href="tech/tech.htm" title="Go to Main Tech Help Page">Tech</a> |
<a href="aboutus.htm" title="View our Hours of Operation, Policies, and History">Company Info</a> |
<a href="order.htm" title="Ordering Information">How to Order</a> |
<a href="pricing.htm" title="View our Price List">Pricing</a> |
<a href="dealers.htm" title="View our List of Dealers">Dealer List</a> |
<a href="links.htm" title="Links of Interest">Links</a> |
<a href="motorsports" title="See Our Products in Action">Motorsports</a>
</p>

What am I missing?

Greg

PunkSktBrdr01
11-04-2003, 04:27 PM
Can you post a link to the page, or screenshot?

TomDenver
11-04-2003, 04:56 PM
I copied and pasted that code and looked at it in IE 6, Mozilla 1.5 and Netscape 7.0. The background runs off the screen to the right in all 3 browsers by about the same amount.

gregmatic
11-04-2003, 09:42 PM
I'm about to put the links back in a table :eek:

Paul Jr
11-04-2003, 11:05 PM
I copy and pasted the code as well, and it looked fine to me in IE6. I looked at it with Mozilla 1.4, too, and it ran off the right side of the page just slightly because the width is set to 99% and there's a small margin on the left side. But that's easily fixable

gregmatic
11-05-2003, 09:07 AM
I made a few changes to try to fix it yesterday, and it didn't work. After deleting my temporary internet files, it worked fine. I guess I got it fixed yesterday and just didn't know it. Thank you all for your help.

Greg