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.

CSS Forum


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



Reply
Why Firefox shows it wrong?
Old 09-22-2008, 06:30 PM Why Firefox shows it wrong?
Novice Talker

Posts: 12
Name: Zeke
Trades: 0
Hi, why Firefox shows it wrong and IE right? The website is www.theoutsourcingcompany.com

If I change the value of margin-top to zero for the divs div-logo and div-text it looks good on both browsers but there's too much white space on top of the logo and the text...

I am very frustrated, please help me.

Here's the code for the HTML:

Code:
<!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>The Outsourcing Company - Web design, copywriting, programming. | Outsourcing Services</title>
<link href="style.css" rel="stylesheet" type="text/css" />

<style type="text/css">
body {
    text-align: center;
    margin: 0;
    background-color: #9e0b0f;
    background-image: url(images/back.jpg);
    background-repeat: repeat-x;
}
</style>

</head>

<body>
<div class="div-header"></div>
<div class="div-middle">
<div class="div-logo">

    <p><img src="images/logo.jpg" alt="The Outsourcing Company" width="193" height="55" /></p>
    <p><span class="div-menu"><img src="images/home.jpg" alt="Home" width="96" height="26" /><br />
        <img src="images/about-us.jpg" alt="About Us" width="96" height="26" /><br />
        <img src="images/ourservices.jpg" alt="Our Services" width="96" height="26" /><br />
        <img src="images/contactus.jpg" alt="Contact Us" width="96" height="26" /></span></p>
  </div>
  <div class="div-text">
    <p>The Outsourcing Company is your business partner for:</p>

    <p><img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Software Development<br />
      <img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Content Generation / Article Writing<br />
      <img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Internet Marketing<br />
      <img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Search Engine Optimization (SEO)<br />
      <img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Pay-Per-Click (PPC) Campaigns Management<br />

    <img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Professional Copywriting Services</p>
    <p>We have two goals:</p>
    <p><img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Help you make more money by increasing your revenues<br />
      <img src="images/bullet.jpg" alt="Bullet" width="12" height="24" /> Help you save money by optimizing your costs and processes</p>
  </div>

</div>
<div class="div-footer"></div>
</body>
</html>

And this is the CSS:

Code:
.div-header {
    background-image: url(images/header-blank.jpg);
    background-repeat: no-repeat;
    margin: auto;
    height: 164px;
    width: 800px;
}
.div-footer {
    background-image: url(images/footer.jpg);
    background-repeat: no-repeat;
    margin: auto;
    height: 48px;
    width: 800px;
}
.div-logo {
    height: 55px;
    width: 193px;
    margin-left: 40px;
    text-align: right;
    float: left;
    margin-top: -120px;
}
.div-text {
    float: left;
    text-align: left;
    width: 485px;
    padding-left: 30px;
    font-family: "Myriad Pro";
    font-size: 13px;
    margin-top: -108px;
}
.div-middle {
    background-image: url(images/middle.jpg);
    background-repeat: repeat-y;
    margin: auto;
    width: 800px;
    height: 1000px;
}
ZekeLL is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-22-2008, 06:34 PM Re: Why Firefox shows it wrong?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
actually FF will have it right

You need to clear your floats.

http://www.quirksmode.org/css/clearing.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Why Firefox shows it wrong?
 

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.16085 seconds with 12 queries