Wierd Firefox Issue
- mysonmark
- Novice


- Joined: Jun 13, 2007
- Posts: 24
- Status: Offline
Hello,
I have been designing a very basic html website in Explorer 7. The layout is fine and I thought I was ready to put my site on the web.
I just by chance decided to take a look at it in firefox and it is doing all sorts of crazy stuff.
The main thing is, when I move my mouse towards the navigation bar my content shifts to the right. It sort of jumps. Does anyone know what could cause this.
Also, another thing but - but a minor one- is that behind my navigation bar I have a background that extends the length of my header. This background "bar" appears in Explorer but not in firefox. In firefox it just leaves a blank space for where it is in explorer 7.
I hope that my question is clear. I was not prepared for this. Is there some rule regarding margins or navigation bars that I need to know when designing a website to be compatible in more than just explorer 7. Please help. I am at a loss right now - I have come so far and would like to complete it.
Thanks so much
Charlene
I have been designing a very basic html website in Explorer 7. The layout is fine and I thought I was ready to put my site on the web.
I just by chance decided to take a look at it in firefox and it is doing all sorts of crazy stuff.
The main thing is, when I move my mouse towards the navigation bar my content shifts to the right. It sort of jumps. Does anyone know what could cause this.
Also, another thing but - but a minor one- is that behind my navigation bar I have a background that extends the length of my header. This background "bar" appears in Explorer but not in firefox. In firefox it just leaves a blank space for where it is in explorer 7.
I hope that my question is clear. I was not prepared for this. Is there some rule regarding margins or navigation bars that I need to know when designing a website to be compatible in more than just explorer 7. Please help. I am at a loss right now - I have come so far and would like to complete it.
Thanks so much
Charlene
- Anonymous
- Bot


- Joined: 25 Feb 2008
- Posts: ?
- Loc: Ozzuland
- Status: Online
December 14th, 2007, 9:18 am
- digitalMedia
- a.k.a. dM


- Joined: Dec 29, 2003
- Posts: 5169
- Loc: SC-USA
- Status: Offline
- mysonmark
- Novice


- Joined: Jun 13, 2007
- Posts: 24
- Status: Offline
Thank you so much for your reply
Yes, I as using the hover effect for the navigation... Could this be my problem? Thanks again. I appreciate your time.
Charlene
Here is the CSS
And here is the html
Yes, I as using the hover effect for the navigation... Could this be my problem? Thanks again. I appreciate your time.
Charlene
Here is the CSS
Code: [ Select ]
body {background-color: eaeaae}
h1 {color: black}
h2 {color: black}
p {color: 303030}
h3 {font-family: times}
p {font-family: courier}
hr {color: green}
#nav{
float:center;
width: 800px;
margin: 0;
Padding: 00px 0 0 0px;
list-style: none;
background: #ffcb2d url(border.jpg) repeat-x bottom left;}
#nav li{
float: left;
margin: 0 1px 0 0;
padding: 0;
font-family: "lucida grande", sans-serif;
font-size: 80%}
#nav a{
float: left;
display: block;
margin: 0;
padding: 4px 8px;
color: #ffffff;
text-decoration: none;
border: 1px solid #9B8748;
border-bottom: none;
background: #000000}
#nav a:hover {
color: #333;
padding-bottom: 5px;
border-color: #727377;
background: #fff url(offtab.jpg) repeat-x top left;}
#content{
float: left;
width: 50%;
margin-left: 100px;
padding-top: 20px;
}
#sidebar{
float: right;
width: 30%;}
h1 {color: black}
h2 {color: black}
p {color: 303030}
h3 {font-family: times}
p {font-family: courier}
hr {color: green}
#nav{
float:center;
width: 800px;
margin: 0;
Padding: 00px 0 0 0px;
list-style: none;
background: #ffcb2d url(border.jpg) repeat-x bottom left;}
#nav li{
float: left;
margin: 0 1px 0 0;
padding: 0;
font-family: "lucida grande", sans-serif;
font-size: 80%}
#nav a{
float: left;
display: block;
margin: 0;
padding: 4px 8px;
color: #ffffff;
text-decoration: none;
border: 1px solid #9B8748;
border-bottom: none;
background: #000000}
#nav a:hover {
color: #333;
padding-bottom: 5px;
border-color: #727377;
background: #fff url(offtab.jpg) repeat-x top left;}
#content{
float: left;
width: 50%;
margin-left: 100px;
padding-top: 20px;
}
#sidebar{
float: right;
width: 30%;}
- body {background-color: eaeaae}
- h1 {color: black}
- h2 {color: black}
- p {color: 303030}
- h3 {font-family: times}
- p {font-family: courier}
- hr {color: green}
- #nav{
- float:center;
- width: 800px;
- margin: 0;
- Padding: 00px 0 0 0px;
- list-style: none;
- background: #ffcb2d url(border.jpg) repeat-x bottom left;}
- #nav li{
- float: left;
- margin: 0 1px 0 0;
- padding: 0;
- font-family: "lucida grande", sans-serif;
- font-size: 80%}
- #nav a{
- float: left;
- display: block;
- margin: 0;
- padding: 4px 8px;
- color: #ffffff;
- text-decoration: none;
- border: 1px solid #9B8748;
- border-bottom: none;
- background: #000000}
- #nav a:hover {
- color: #333;
- padding-bottom: 5px;
- border-color: #727377;
- background: #fff url(offtab.jpg) repeat-x top left;}
- #content{
- float: left;
- width: 50%;
- margin-left: 100px;
- padding-top: 20px;
- }
- #sidebar{
- float: right;
- width: 30%;}
And here is the html
Code: [ Select ]
<head>
<center>
<title>CDM Financials</title>
<div id="branding">
<img src="bannerMJD.jpg" alt="city"/></div>
<ul id="nav">
<li id="t-home"><a href="home.html">Home</a></li>
<li id="t-About Us"><a href="Aboutus.html">About Us</a></li>
<li id="t-Services"><a href="Services.html">Services</a></li>
<li id="t-Privacy Policy"><a href="Privacypolicy.html">Privacy Policy</a></li>
<li id="t-Contact Us"><a href="Contactus.html">Contact Us</a></li>
</ul>
</center>
</HEAD>
<BODY>
<div id="wrap">
<div id="content">
<p>
<h2><b>WELCOME</b></h1>
<p>We are a full service public accounting firm offering hands on
financial solutions for individual tax payers and small to medium-sized businesses.
Our goal is to provide the highest quality financial services available at an affordable
price. Whether you are lacking the quality personal attention you deserve from your current
accounting firm or desperately need a CPA to step in to assist with complicated accounting and
tax matters, CDM provides the reliable, expert advice and services you need. We invite you to
explore our website to learn more about us and the services that we provide.
</div>
<div id= "sidebar"><img src="calculator.jpg"></div>
</div>
</BODY>
<div id="footer">
<center>
<img src="footertake4.jpg"></div>
</center>
</div>
</div>
</HTML>
<center>
<title>CDM Financials</title>
<div id="branding">
<img src="bannerMJD.jpg" alt="city"/></div>
<ul id="nav">
<li id="t-home"><a href="home.html">Home</a></li>
<li id="t-About Us"><a href="Aboutus.html">About Us</a></li>
<li id="t-Services"><a href="Services.html">Services</a></li>
<li id="t-Privacy Policy"><a href="Privacypolicy.html">Privacy Policy</a></li>
<li id="t-Contact Us"><a href="Contactus.html">Contact Us</a></li>
</ul>
</center>
</HEAD>
<BODY>
<div id="wrap">
<div id="content">
<p>
<h2><b>WELCOME</b></h1>
<p>We are a full service public accounting firm offering hands on
financial solutions for individual tax payers and small to medium-sized businesses.
Our goal is to provide the highest quality financial services available at an affordable
price. Whether you are lacking the quality personal attention you deserve from your current
accounting firm or desperately need a CPA to step in to assist with complicated accounting and
tax matters, CDM provides the reliable, expert advice and services you need. We invite you to
explore our website to learn more about us and the services that we provide.
</div>
<div id= "sidebar"><img src="calculator.jpg"></div>
</div>
</BODY>
<div id="footer">
<center>
<img src="footertake4.jpg"></div>
</center>
</div>
</div>
</HTML>
- <head>
- <center>
- <title>CDM Financials</title>
- <div id="branding">
- <img src="bannerMJD.jpg" alt="city"/></div>
- <ul id="nav">
- <li id="t-home"><a href="home.html">Home</a></li>
- <li id="t-About Us"><a href="Aboutus.html">About Us</a></li>
- <li id="t-Services"><a href="Services.html">Services</a></li>
- <li id="t-Privacy Policy"><a href="Privacypolicy.html">Privacy Policy</a></li>
- <li id="t-Contact Us"><a href="Contactus.html">Contact Us</a></li>
- </ul>
- </center>
- </HEAD>
- <BODY>
- <div id="wrap">
- <div id="content">
- <p>
- <h2><b>WELCOME</b></h1>
- <p>We are a full service public accounting firm offering hands on
- financial solutions for individual tax payers and small to medium-sized businesses.
- Our goal is to provide the highest quality financial services available at an affordable
- price. Whether you are lacking the quality personal attention you deserve from your current
- accounting firm or desperately need a CPA to step in to assist with complicated accounting and
- tax matters, CDM provides the reliable, expert advice and services you need. We invite you to
- explore our website to learn more about us and the services that we provide.
- </div>
- <div id= "sidebar"><img src="calculator.jpg"></div>
- </div>
- </BODY>
- <div id="footer">
- <center>
- <img src="footertake4.jpg"></div>
- </center>
- </div>
- </div>
- </HTML>
- digitalMedia
- a.k.a. dM


- Joined: Dec 29, 2003
- Posts: 5169
- Loc: SC-USA
- Status: Offline
In your selector #nav a:hover, you're adding 5px of bottom padding. I would imagine this is creating your display issues.
You're HTML has gone a little crazy, I think. I took the liberty of doing a quick clean up.
You're HTML has gone a little crazy, I think. I took the liberty of doing a quick clean up.
Code: [ Select ]
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>CDM Financials</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style>
body {background-color:#eaeaae}
h1 {color: black}
h2 {color: black}
p {color:#303030}
h3 {font-family: times}
p {font-family: courier}
hr {color: green}
#nav{float:center;width:800px;margin:0;padding:0;list-style:none;background:#ffcb2d url(border.jpg) repeat-x bottom left;}
#nav li{float:left;margin:0 1px 0 0;padding: 0;font-family: "lucida grande", sans-serif;font-size: 80%}
#nav a{float: left;display: block;margin: 0;padding: 4px 8px;color: #ffffff;text-decoration: none;border: 1px solid #9B8748;border-bottom: none;background: #000000}
#nav a:hover {color: #333;padding-bottom: 5px;border-color: #727377;background: #fff url(offtab.jpg) repeat-x top left;}
#content{float: left;width: 50%;margin-left: 100px;padding-top: 20px;}
#sidebar{float: right;width: 30%;}</style></head>
<body>
<div id="branding">
<img src="bannerMJD.jpg" alt="city"/></div>
<ul id="nav">
<li id="t-home"><a href="home.html">Home</a></li>
<li id="t-About Us"><a href="Aboutus.html">About Us</a></li>
<li id="t-Services"><a href="Services.html">Services</a></li>
<li id="t-Privacy Policy"><a href="Privacypolicy.html">Privacy Policy</a></li>
<li id="t-Contact Us"><a href="Contactus.html">Contact Us</a></li></ul>
<div id="wrap">
<div id="content">
<h1><b>WELCOME</b></h1>
<p>We are a full service public accounting firm offering hands on financial solutions for individual tax payers and small to medium-sized businesses. Our goal is to provide the highest quality financial services available at an affordable price. Whether you are lacking the quality personal attention you deserve from your current accounting firm or desperately need a CPA to step in to assist with complicated accounting and tax matters, CDM provides the reliable, expert advice and services you need. We invite you to explore our website to learn more about us and the services that we provide.</p></div>
<div id= "sidebar">
<img src="calculator.jpg"></div></div>
<div id="footer">
<img src="footertake4.jpg"></div></body></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>
<title>CDM Financials</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style>
body {background-color:#eaeaae}
h1 {color: black}
h2 {color: black}
p {color:#303030}
h3 {font-family: times}
p {font-family: courier}
hr {color: green}
#nav{float:center;width:800px;margin:0;padding:0;list-style:none;background:#ffcb2d url(border.jpg) repeat-x bottom left;}
#nav li{float:left;margin:0 1px 0 0;padding: 0;font-family: "lucida grande", sans-serif;font-size: 80%}
#nav a{float: left;display: block;margin: 0;padding: 4px 8px;color: #ffffff;text-decoration: none;border: 1px solid #9B8748;border-bottom: none;background: #000000}
#nav a:hover {color: #333;padding-bottom: 5px;border-color: #727377;background: #fff url(offtab.jpg) repeat-x top left;}
#content{float: left;width: 50%;margin-left: 100px;padding-top: 20px;}
#sidebar{float: right;width: 30%;}</style></head>
<body>
<div id="branding">
<img src="bannerMJD.jpg" alt="city"/></div>
<ul id="nav">
<li id="t-home"><a href="home.html">Home</a></li>
<li id="t-About Us"><a href="Aboutus.html">About Us</a></li>
<li id="t-Services"><a href="Services.html">Services</a></li>
<li id="t-Privacy Policy"><a href="Privacypolicy.html">Privacy Policy</a></li>
<li id="t-Contact Us"><a href="Contactus.html">Contact Us</a></li></ul>
<div id="wrap">
<div id="content">
<h1><b>WELCOME</b></h1>
<p>We are a full service public accounting firm offering hands on financial solutions for individual tax payers and small to medium-sized businesses. Our goal is to provide the highest quality financial services available at an affordable price. Whether you are lacking the quality personal attention you deserve from your current accounting firm or desperately need a CPA to step in to assist with complicated accounting and tax matters, CDM provides the reliable, expert advice and services you need. We invite you to explore our website to learn more about us and the services that we provide.</p></div>
<div id= "sidebar">
<img src="calculator.jpg"></div></div>
<div id="footer">
<img src="footertake4.jpg"></div></body></html>
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!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>
- <title>CDM Financials</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <style>
- body {background-color:#eaeaae}
- h1 {color: black}
- h2 {color: black}
- p {color:#303030}
- h3 {font-family: times}
- p {font-family: courier}
- hr {color: green}
- #nav{float:center;width:800px;margin:0;padding:0;list-style:none;background:#ffcb2d url(border.jpg) repeat-x bottom left;}
- #nav li{float:left;margin:0 1px 0 0;padding: 0;font-family: "lucida grande", sans-serif;font-size: 80%}
- #nav a{float: left;display: block;margin: 0;padding: 4px 8px;color: #ffffff;text-decoration: none;border: 1px solid #9B8748;border-bottom: none;background: #000000}
- #nav a:hover {color: #333;padding-bottom: 5px;border-color: #727377;background: #fff url(offtab.jpg) repeat-x top left;}
- #content{float: left;width: 50%;margin-left: 100px;padding-top: 20px;}
- #sidebar{float: right;width: 30%;}</style></head>
- <body>
- <div id="branding">
- <img src="bannerMJD.jpg" alt="city"/></div>
- <ul id="nav">
- <li id="t-home"><a href="home.html">Home</a></li>
- <li id="t-About Us"><a href="Aboutus.html">About Us</a></li>
- <li id="t-Services"><a href="Services.html">Services</a></li>
- <li id="t-Privacy Policy"><a href="Privacypolicy.html">Privacy Policy</a></li>
- <li id="t-Contact Us"><a href="Contactus.html">Contact Us</a></li></ul>
- <div id="wrap">
- <div id="content">
- <h1><b>WELCOME</b></h1>
- <p>We are a full service public accounting firm offering hands on financial solutions for individual tax payers and small to medium-sized businesses. Our goal is to provide the highest quality financial services available at an affordable price. Whether you are lacking the quality personal attention you deserve from your current accounting firm or desperately need a CPA to step in to assist with complicated accounting and tax matters, CDM provides the reliable, expert advice and services you need. We invite you to explore our website to learn more about us and the services that we provide.</p></div>
- <div id= "sidebar">
- <img src="calculator.jpg"></div></div>
- <div id="footer">
- <img src="footertake4.jpg"></div></body></html>
- dM
- jameson5555
- Bronze Robot


- Joined: Oct 02, 2007
- Posts: 575
- Loc: Phoenix, AZ
- Status: Offline
Also, it's typically a good idea to validate your CSS. I found a few errors (Check them out here.) These may have some effect on browser compatibility because IE interprets errors a little different than Firefox does. Firefox tends to be a little more strict, which I think isn't necessarily a bad thing.
phoenix web design
Page 1 of 1
To Reply to this topic you need to LOGIN or REGISTER. It is free.
Post Information
- Total Posts in this topic: 6 posts
- Users browsing this forum: No registered users and 120 guests
- You cannot post new topics in this forum
- You cannot reply to topics in this forum
- You cannot edit your posts in this forum
- You cannot delete your posts in this forum
- You cannot post attachments in this forum
