473,545 Members | 2,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with firefox and IE

21 New Member
Hi,

I am new to web development. I have designed a main page using html and css, I am working in linux OS so I am using firefox. But the problem is with IE, where the entire contents and images is re-positioned . the page looks entirely different. Please anyone can help me in this regard. Here is the css and html code

home.php
[html]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="health y dining restaurants organic grocers farmers market eating out calories nutrition database kilorie">

<meta name="descripti on" content="Kilori e provides information on healthy dining be it eating out or in. Find information on restaurants, fast food calories, organic grocers, farmers market, and a nutrition database">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="slides1.c ss" rel="stylesheet " type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="banner"></div>

<div id="header">

<ul>

<li id="current">< a href="index.php ">Home </a></li>

<li><a href="search_re staurants.php"> Restaurants </a></li>

<li><a href="organics. php">Organics </a></li>

<li><a href="calories. php">Calories </a></li>

<li><a href="../phpBB2/index.php">Foru m </a>

</ul>

</div>
<div class="containe r">
&nbsp;&nbsp;&nb sp;&nbsp;<a href="home.php" >Home></a>
<!div id="box">
<div id="box2">
<div id="content"><b r>
<b>&nbsp;&nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; Kilorie. Healthy dining and nutrition information</b><br><br>
Kilorie promotes healthy eating by providing information on local restaurants, organic grocers, and farmers' markets.<br><br >
<b>Recent reviews</b>
&nbsp;&nbsp;&nb sp;&nbsp;<img src="images/line.gif" width="300" height="3"><br> <br>
Agnes and Muriels<br>
&nbsp;&nbsp;&nb sp;“This place has some great/ creative salads…"&nbsp;< a style="text-decoration:none " href="home.php" >More...</a><br><br>
American Roadhouse<br>
&nbsp;&nbsp;&nb sp;“Agree with Barbeque, the best brunch place in Atlanta…”&nbsp; <a style="text-decoration:none " href="home.php" >More...</a><br><br>
<b>What’s news?</b>
&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<img src="images/line.gif" width="300" height="3"><br> <br>
<img align="right" src="images/homeimg1.gif" width="60" height="60">
<b>Good Calories, Bad Calories</b>&nbsp;By Gna kolata<br>
Source: NY Times, 10/07/2007
&nbsp;<a style="text-decoration:none " href="home.php" >More...</a><br><br>
<b>Work out naturally!</b>&nbsp;By The kilorie team<br>
Source: Kilorie, 10/07/2007
&nbsp;<a style="text-decoration:none " href="home.php" >More...</a><br><br>
<b>Fulton County Restaurant Scores: Inaccessible?</b>&nbsp; By Kilorie<br>
Source: Kilorie News, 09/24/2007
&nbsp;<a style="text-decoration:none " href="home.php" >More...</a><br><br>
<b>Culture matters in the Obesity debate</b> By Kelly D.Brownell<br>
Source: LA Times, 09/21/2007
&nbsp;<a style="text-decoration:none " href="home.php" >More...</a>

</div>
</div>
<div id="box1"><br>
&nbsp;&nbsp;<b> Restaurant of the week</b><br><br>
&nbsp;&nbsp;<im g align="center" src="images/homeimg2.gif" width="60" height="60">&nb sp;&nbsp;Figo Pasta<br><br>
&nbsp;&nbsp;Cui sine:Italian<br >
&nbsp;&nbsp;Foo d : <img src="images/5stars.gif"><br >
&nbsp;&nbsp;Ser vice : <img src="images/5stars.gif"><br >
&nbsp;&nbsp;Cle anliness : <img src="images/5stars.gif"><br ><br>
<p align="center" >Recommandation s: "Artichoke ravivioli with Siciliana Sauce..."
<a style="text-decoration:none " href="home.php" >More...</a></p>
</div>
<div id="box3"><br>
&nbsp;&nbsp;<b> Did you know?<b>
&nbsp;&nbsp;<im g align="right" src="images/homeimg3.gif" width="60" height="60">
</div>
</div>
<!/div>

<div id="footer"><b> <a style="text-decoration:none " href="home.php" >About us</a> | <a style="text-decoration:none " href="home.php" >Privacy</a> | <a style="text-decoration:none " href="home.php" >Advertise with us</a></b></div>
<?include "track.php" ;?>
</div>
</body>
</html>
[/html]

slides.css
Expand|Select|Wrap|Line Numbers
  1. html, body, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset {
  2.  
  3. margin: 0;
  4.  
  5. padding: 0;
  6.  
  7. border: 0;
  8.  
  9. }
  10.  
  11. body {
  12.  
  13.     font-family: verdana; /* helvetica, impact, sans-serif;*/
  14.  
  15.     font-size: 14px;
  16.  
  17.     color:  #ff;
  18.  
  19.     //background-color: #FF9966; /*#DDCCC2;*/
  20.  
  21.     //background: url('images/image.jpg') repeat center;
  22.  
  23. }
  24.  
  25. #banner{
  26.  
  27.     height: 100px;
  28.     background-image: url(images/banner_v8.jpg);
  29.  
  30.     background-repeat: no-repeat;
  31.  
  32. }
  33.  
  34. #wrapper{
  35.  
  36.     width: 770px;
  37.  
  38.     /*background-color: #ABFF93; BEF3C0; key color */
  39.  
  40.     //background: url('bggrad2.jpg') repeat-x;
  41.  
  42.     margin:10px auto;
  43.  
  44.     border: 1px solid #000000;
  45.     height:620px auto;
  46.     background-color: #FFFFFF;
  47. slides.css
  48.  
  49. }
  50.  
  51. .container{
  52.  
  53.     width: 770px;
  54.     height:500px auto;
  55.  
  56.     float: middle;
  57.  
  58.     //margin-left: 10px;
  59.  
  60.      //margin-top:10px;
  61.  
  62.     //background-color: #669933; /*#DDCCC2; key color*/
  63. }
  64.  
  65. #box {
  66.     top: 0px;
  67.     left: 100px;
  68.     margin: 20px;
  69.     padding: 1px;
  70.     //border: 1px solid #000000;
  71.     width: 730px; 
  72.         height: 400px;
  73. }
  74.  
  75. #box1 {
  76.     margin: 20px;
  77.     padding: 1px;
  78.     border: 1px solid #000000;
  79.     width: 30%; 
  80.         height: 55%
  81.     }
  82. #box2 {
  83.     margin: 20px;
  84.     padding: 1px;
  85.     border: 1px solid #000000;
  86.     float: right; 
  87.     width: 63%; 
  88.         height: 90%;
  89.     }
  90. #box3 {
  91.     margin: 20px;
  92.     padding: 1px;
  93.     border: 1px solid #000000;
  94.     width: 30%; 
  95.         height: 31%;
  96.     }
  97.  
  98.  
  99.  
  100.      #header {
  101.  
  102.       float:left;
  103.  
  104.       width:100%;
  105.  
  106.       background:#DAE0D2 url("images/bg2.gif") repeat-x bottom;
  107.  
  108.       font-size:93%;
  109.  
  110.       line-height:normal;
  111.  
  112.       }
  113.  
  114.     #header ul {
  115.  
  116.       margin:0;
  117.  
  118.       padding:10px 10px 0;
  119.  
  120.       list-style:none;
  121.  
  122.       }
  123.  
  124.     #header li {
  125.  
  126.       float:left;
  127.  
  128.       background:url("images/norm_new_left.gif") no-repeat left top;
  129.  
  130.       margin:0;
  131.  
  132.       padding:0 0 0 9px;
  133.  
  134.       }
  135.  
  136.     #header a {
  137.  
  138.       display:block;
  139.  
  140.       background:url("images/norm_new_right.gif") no-repeat right top;
  141.  
  142.       padding:5px 15px 4px 6px;
  143.  
  144.       text-decoration:none;
  145.  
  146.       font-weight:bold;
  147.  
  148.       color:#765;
  149.  
  150.       }
  151.  
  152.     #header a:hover {
  153.  
  154.       color:#333;
  155.  
  156.       }
  157.  
  158.     #header #current {
  159.  
  160.       background-image:url("images/norm_left_on.gif");
  161.  
  162.       }
  163.  
  164.     #header #current a {
  165.  
  166.       background-image:url("images/norm_right_on2.gif");
  167.  
  168.       color:#333;
  169.  
  170.       padding-bottom:5px; /* f4ebe7 is best here*/
  171.  
  172.       }
  173.  
  174.  
  175. #footer{
  176.  
  177.     border-top: 1px solid #000000;
  178.  
  179.     background-color: #ec6053;/*#208a25; #003366;*/
  180.  
  181.     color: #00;
  182.  
  183.     clear: both;
  184.  
  185.     height:20px;
  186.     text-align:center;
  187.  
  188.     width:770px;
  189. }
  190.  
  191. #content {
  192.  
  193.  
  194.  
  195. margin-left: 15px;
  196.  
  197. margin-right: 15px;
  198.  
  199. //background-color: #FFF8DC; /*#60D136;*/
  200.  
  201. }
Jan 22 '08 #1
4 1829
just a feeling
87 New Member
Peace,
Welcome kumuda,

A missing Document Type Declaration (DDT) in ur html document causes IE to go into "quirks" mode which affects your presentation.

At the very begining, write this
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">[/HTML]

Then, try to validate ur html and Css for the errors u have.
http://validator.w3.or g/
http://jigsaw.w3.org/css-validator/

and let us know if u still face the same problem.

Hope that help,
Rawan.
Jan 22 '08 #2
kumuda v
21 New Member
Thank u

Now the page looks similar in both the browsers,
But the problem is with arranging the boxes horizantally where box1 is of larger dimension and is to the right, box2 and box3 are of smaller dimension to the left of box1 one below the other.
The code I have used is this.

test.php

<div class="containe r"><br>

<!Box model starts here>

<div id="box2"> This is box1</div>
<div id="box1"> This is box2</div>
<div id="box3"> This is box3</div>




<!box model ends here>

</div>

test.css

.container{

width: 700px;

/*float: right;*/

margin-left: 10px;

margin-top:10px;
margin-right:10px;
margin-bottom:10px;

background-color: #CC33FF; /*#DDCCC2; key color*/

}

#box1 {
margin: 10px;
padding: 1px;
border: 1px solid #000000;
width: 200px;
height: 200px;
float:top

}




#box2 {
margin: 10px;
padding: 1px;
border: 1px solid #000000;
float: right;
width: 450px;
height: 550px;
}




#box3 {
margin: 10px;
padding: 1px;
border: 1px solid #000000;
width: 200px;
height: 220px;
}



The boxes are aligned properly in firefox but in IE they appear one below the other. How to solve this issue. Can u please help me out

With regards,
kumuda
Jan 23 '08 #3
just a feeling
87 New Member
Hi kumuda,

Just add one pixel to the width of the container (i.e change it to 701) and it should work.

Best Regards,
Rawan.
Jan 23 '08 #4
kumuda v
21 New Member
Hi Rawan,

Thank you so much, It is working fine in both firefox and IE.

With regards,
kumuda
Jan 24 '08 #5

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

Similar topics

7
8999
by: tagdance | last post by:
Hello friends, I have a very interesting problem with my css files and firefox - I guess ! Listen: I have set up my new website www.tagdance.de For testing purpose I have mirrored this site under www.suedafrika-kapstadt.com, where it looks lovely with all browsers.
7
4779
by: Merlin | last post by:
Hi there, I have a serious problem with opening a new window with the help of JavaScript. The problem only occures with Firefox. Once you click on the item which fires up the open function, the new window opens up, but in the background the original window loads the homepage. I cant find a way to fix this so the site remains in the old...
3
1508
by: cwdjrxyz | last post by:
I suggest that everyone using a recent version of Firefox read http://forums.mozillazine.org/viewtopic.php?t=315656&sid=b1db62861b8da29535c43e9c5c527c3b at once. This new security problem was reported Friday and may be extremely serious for certain Firefox versions. There is a patch, but it will take a little time to release. Instructions are...
13
2851
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available here: http://s161149005.onlinehome.us/DEMOS/FF/RESIZE_PROB/main/frameset.asp It works fine in IE 6, but in Firefox, it is broken. Specifically,...
7
4634
by: Xah Lee | last post by:
Look at this page http://xahlee.org/emacs/wrap-url.html Look at it in Firebox, look at it in Safari, in Opera, and look at it in Microsoft Internet Explorer. The only fucked up case, is Firefox. Namely, that it does not respect the font used when dealing with «width:80ex». The way to test this visually, is by this code: <pre...
1
2383
by: tinnews | last post by:
I'm running a python script via the apache ExtFilterDefine directive, it works basically as expected *except* that when I change the script apache/firefox continue to run the old version of the python script until I remove the script completely and then replace it. I.e. my script is called tl2html.py, if I change it to (say) add several...
3
3909
by: willyWEB66 | last post by:
Hi everyone, I'm having problem with the sequence of execution for xml.onload. It works fine if your not passing parameters to onload event but my code needs to pass parameter to its function. I'm able to research ablut passing parameters for onload event. However my problem is it only executes on the last instance of loading the XML. I'm...
8
1888
by: Atemporal | last post by:
When I click the link of this group, it shows the followings errors. Cannot find comp.lang.c%2B%2B There is no group named comp.lang.c%2B%2B. * The link you followed may be broken or misspelled. * Search for comp.lang.c%2B%2B * If you got to this page by clicking a search result, please report the problem to Google Groups Support.
15
2491
by: Mike Driscoll | last post by:
Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such as the Working Directory and the Target Path. However, the following...
6
1932
by: Dennis | last post by:
I am in the process of converting some program output from HTML to XML/XSLT. I have an XSL stylesheet that inserts some javascript in the output that gets called further down to pop up a window). It works fine in IE6 but not in Firefox/Netscape. See... http://kowallekfamily.com/genealogy/reports/desc-3817.xml It is the Note link (just to...
0
7496
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...
0
7428
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...
1
7452
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...
0
7784
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...
0
6014
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...
1
5354
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5071
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...
0
3485
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.