473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Div differs in (yes once again) Firefox vs IE

30
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>Goldfish 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.php">Contact</a>

</div>
</div>

<div id="sidebar">

<div id="texto">

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

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

<div id="links">

<div class="nav">
<p>
<a href="#">Pixel2Life</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 1602

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

Similar topics

9
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...
59
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...
22
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/...
6
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
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...
4
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...
2
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...
7
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...
3
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,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.