Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 10-23-2008, 04:23 PM Navbar Help
freeman17's Avatar
Average Talker

Posts: 16
Trades: 0
Ok, now I'm running into a problem between browsers. The navbar looks fine in IE7, but in Firefox it will display a white background. If anyone could help me out, it would be GREATLY appreciated! Here is my HTML and CSS code:


HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>My Title</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>

<body>



<div class="wrap">
<img src="images/trimtop.gif" align="top" />
<div class="container">

<div class="header"></div>

<div class="navagationbar">
<ul>
<li id="current"><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="meetings.html">Meeting Info</a></li>
<li><a href="memberlogin.html">Member Login</a></li>
</ul>
</div>
<!-- End Navagation -->

<div class="content">


<div class="left">left content</div>

<div class="right">right content</div>

<div class="clear">&nbsp;</div>

</div>

<div class="footer">
<a href="index.html">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="about.html">About</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="services.html">Services</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="meetings.html">Meeting Info</a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="memberlogin.html">Member Login</a>
</div>
<!-- End Footer -->


</div>
<img src="images/trimbottom.gif" align="bottom" />
</div>



</body>
</html>


CSS:
@charset "UTF-8";
/* CSS Document */


body {
font-family:Arial, Helvetica, sans-serif;
background-image:url(images/gradient.png);
background-repeat:repeat-x;
background-color:#b1b1b1;
maring:0px;
padding-top:25px;
text-align:center;
}



.wrap {
margin:0px auto;
padding:10px 0px 10px 0px;
text-align:left;
width:900px;
background-repeat:repeat-y;
}

.container {
margin:0px auto;
width:700px;
}

.header {
width:700px;
height:124px;
background-image:url(images/header.gif);
background-repeat:no-repeat;
}

.navagationbar {
float:left;
width:700px;
border-top:solid #333333 1px;
border-bottom:solid #333333 1px;
font-size:14px;
}

.navagationbar ul {
margin:0;
padding:0;
list-style:none;
text-align:center;
}

.navagationbar li {
float:left;
margin:0 auto;
padding:7px 0px;

}

.navagationbar ul li a {
display:inline;
padding:7px 10px;
color:#333333;
text-decoration:none;
}

.navagationbar ul li a:hover {
padding:7px 10px;
background-color:#333333;
color:#cccccc;
}

.navagationbar #current a {
background-color:#333333;
color:#cccccc;
}

.content {
padding:0px;
width:700px;
color:#333333;
background-color:#ffffff;
}

.left {
padding:20px;
width:300px;
float:left;
}

.right {
padding:20px;
width:300px;
float:right;
}

.clear {
clear:both;
}

.footer {
width:700px;
text-align:center;
font-size:11px;
}

.footer a {
text-decoration:none;
color:#333333;
}

.footer a:hover {
text-decoration:underline;
}



It has taken me forever to just get this far and have the site look the same in both browsers, now only if Firefox would just cooperate!

Any ideas? I have been staring at this for hours!
freeman17 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-23-2008, 05:15 PM Re: Navbar Help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Firefox cooperates just fine - it's IE that invariably is showing you something incorrectly because of it's many bugs. Do yourself a favor - test in Firefox FIRST, then KICK IE as needed to make IT behave.

You haven't cleared the floats in your navigation bar.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-23-2008, 07:03 PM Re: Navbar Help
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Unless I'm missing the code, it doesn't look like you specified a background-color. I see you have a background-color on the hover and the current page, but I don't see where you've added it to the default state.

I'm guessing you need to add the background-color on the list items in the nav bar.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-23-2008, 11:59 PM Re: Navbar Help
Sean@WMS's Avatar
Skilled Talker

Posts: 52
Name: Sean Connors
Location: Eureka, CA USA
Trades: 0
Quote:
Originally Posted by LadynRed View Post
You haven't cleared the floats in your navigation bar.
Actually, LadynRed nailed it; you need to clear floats here:
Code:
.content {
clear: both;
See: http://www.wmsmerchantservices.com/t.../freeman17.htm
__________________
Web Merchant Services

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
Sean@WMS is offline
Reply With Quote
View Public Profile Visit Sean@WMS's homepage!
 
Old 10-24-2008, 01:00 PM Re: Navbar Help
freeman17's Avatar
Average Talker

Posts: 16
Trades: 0
Awesome, thanks so much guys!
freeman17 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Navbar Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27686 seconds with 12 queries