473,774 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Div differs in (yes once again) Firefox vs IE

30 New Member
I have a problem that I know gets asked about a lot. Its how my page differs in IE vrs. Firefox. I know IE sucks, but hears whats going on.

IE... http://i93.photobucket.com/albums/l7...uzy/IEGOLD.jpg

Firefox... http://i93.photobucket.com/albums/l7...zy/FIREFOX.jpg

(Note the positioning of the text in the sidebars)

I hate the fact that my pages look sweet in Firefox, but not IE.. I don't even know what div is giving me problems I get the feeling that when I coded this I made too many divs. Should I replace some of them with classes and ids? Anyway if you know whats wrong please let me know. Just so its easyer for you to look through my code I think the problem is in

#texto

#sidebar

#sideposition

one of those divs. I am not sure though.

Hear is my CSS...

body {

background-color: #5f656b;
font-family: Tahoma, "Arial Unicode MS", Arial, sans-serif, serif;
font-size: .8em;
color: #eea103

}

/*July 8th 2007*/



#content {

height: 505px;
width: 518px;
background-image: url(images/content.jpg);
background-repeat: no-repeat;
margin-top: 4%;
margin-left: 27.2%;

}


#sidebar {

height: 505px;
width: 153px;
background-image: url(images/sidebar.jpg);
background-repeat: no-repeat;
margin-top: 4%;
padding-top: 3%;
padding-left: 3.5%;
margin-left: auto;
float: left;

}


#navigation {

margin: 0%;
padding-top: 0%;
border-width: 0px;
height: 28px;

}


#banner {

border-width: 0px;
margin: 0%;
padding: 0%;
margin-top: 0%;
height: 119px;

}


#footer {

height: 28px;
width: 712px;
background-image: url(images/footer.jpg);
background-repeat: no-repeat;
margin-top: 4.2%;

}

#container {

width: 712px;
margin: auto;
position: relative;
padding: 0%;
background-color: #3c4246;

}


#home {

width: 442px;

}

#news {

width: 442px;

}


#texto {

padding-left: .8%;
padding-right: .8%;
padding-top: 6%;
width: 105px;

}


#text {

padding-left: 5.5%;
padding-top: 5%;
padding-right: 5.5%;

}

#footer {

padding-top: .01%;
padding-left: 3%;
font-size: .7em;
}



#links {

padding: 0%;
margin: 0%;

}

#navigation {

height: 28px;
width: 712px;
background-image: url(images/navigation.jpg) ;
background-repeat: no-repeat;
margin-top: 0%;

}

#hvan {

margin-left: 28.5%;
padding-top: .7%;
padding-bottom: 1%;



/* Section for links styles and other */



}

a:link {
color: #ef9f02;

}

a:visited {
color: #ef9f02;
}

a:hover {
color: #ae6d1b;

}

a:active {
color: #ef9f02;

}







.nav a {

color: #ef9f02;
text-decoration: none;

}

.nav a:visited {
color: #ef9f02;
text-decoration: none;

}

.nav a:hover {

color: #ae6d1b;
text-decoration: underline;

}


.nav a:active {

color: #ef9f02;

}




Hear is my Xhtml and php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<title>Goldfi sh Graphics</title>

<link type="text/css" rel="stylesheet " href="Goldfish. css" />

<style type="text/css">
<!--
A {text-decoration:none }
-->
</style>

</head>

<body>

<div id="container" >

<div id="banner">
<img src="Images/banner.jpg" alt= "Goldfish Graphics Banner Image" />
</div>


<div id="navigation" >
<div id="hvan">
<a href="index.php ">Home</a> &nbsp; &nbsp; &nbsp; &nbsp; <a href="services. php">Services</a> &nbsp; &nbsp; &nbsp; &nbsp; <a href="portfolio .php">Portfolio </a> &nbsp; &nbsp; &nbsp; &nbsp; <a href="contact.p hp">Contact</a>

</div>
</div>

<div id="sidebar">

<div id="texto">

<h4>Testimonies </h4>
<p> <?php include('testmo nies.php'); ?>

</p>
</div>
<h4>Links</h4>

<div id="links">

<div class="nav">
<p>
<a href="#">Pixel2 Life</a>
<br />
<a href="#">Link</a>
<br />
<a href="#">Link</a>
<br />
<a href="#">Link</a>
</p>
</div>

</div>
</div>




<div id="content">
<div id="text">
<h2>Home</h2>
<p id="home">
Based in the Midwest, Goldfish Graphics is a freelance design business. Goldfish Graphics is
dedicated to working with clients to turn their ideas into unique designs. By communicating
with our clients, we produce quality websites, layouts, print graphics, and logos
that are affordable.

</p>
<h4>News (<?PHP
echo date("M d, Y");
?>)</h4>

<p id="news">
Although the Goldfish Graphics site is up and running, I am still currently learning how to better make web sites.
Because I am still learning, all web based projects I take on now will be 50% of the price they should be. With a little patience you can have quality web designs for half the price.
</p>
</div>
</div>

<div id="footer">
</div>



</div>






</body>
</html>
Jul 19 '07 #1
0 1627

Sign in to post your reply or Sign up for a free account.

Similar topics

9
3076
by: Colin McGuire | last post by:
Hi, I have an report in Microsoft Access and it displays everything in the table. One column called "DECISION" in the table has either 1,2, or 3 in it. On my report it displays 1, 2, or 3. I want to appear in the report is Yes, No, or Maybe. What do I need to do to change what appears in the report/what term do I need to search out in Google? Thank you Colin
59
7042
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta http-equiv="Content-Type" content="text/html;
22
2306
by: petermichaux | last post by:
Hi, I would like to display a message to Internet Explorer clients to encorage them to get Firefox. Yes they may like Internet Explorer but it is my site :) http://www.explorerdestroyer.com/ uses navigator.userAgent If ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) &&
6
13734
by: Angus | last post by:
I am using a global which is a void* I have it defined in one file as: void* hFlag; and one other header file as: extern void* hFlag; But I get this compile error:
16
2059
by: Josef Dalcolmo | last post by:
I tried this on Windows only: In Python 2.4 os.path.getmtime returned the local time, in Python 2.5 it seems to return GMT: import os, time print ctime.time(os.path.getmtime(foo)) differs on Python 2.4 and Python 2.5 by the timezone.
4
3704
by: HeroOfSpielburg | last post by:
Hello, I'm very new to CSS and still in the reference/copy/paste/edit stage, so please forgive my ignorance. I'm using CSS for my blog, and while the font size is fine in Firefox, it is illegibly small when looked at in IE. It can't even be mousewheeled to a readable size. Is there some descrepancy in how the two browsers render CSS? Can anyone please tell me how to extend or unify my stylesheet so the font shows up as the same size...
2
1599
by: RichmondJim | last post by:
I'm a newbie when it comes to CSS and I tried to incorporate menu buttons using CSS on to our site. It works great (IMHO) in IE6, but someone emailed me that it's really crappy in FF2, so I installed Firefox and... they're right! I tried a couple of possible corrections, but it either made the Firefox worse, or messed up the IE6. Unfortunately, this is a production site so I can't mess around with it too much. Would someone look at...
7
1636
by: injia | last post by:
I have my server request working but it will only make the request once. onclick calls the ajax function but only once. when i change entires in the form and hit the button nothing happens Here is the code: <html> <head> <script language="javascript" type="text/javascript"> <!-- //Browser Support Code function ajaxFunction(){ var ajaxRequest; // The variable that makes Ajax possible!
3
10823
by: imaloner | last post by:
I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working, commercially sold application with only partial build instructions. The previous maintainer of the code (a mixture of C and C++) is no longer with the company, but when he built the code he used MSVC++, and though I am not certain of the version he was ...
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10040
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.