473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

div distortion in IE and Firefox

121 New Member
hello,

i have created one website using div i.e total layout is designed using div only.
if i saw that pages in Internet Explorer vesion 6, its showing very fine,
but if i open same pages in Mozila firefox the entire layout get changed.
i.e the width and height of boxes get increased. what is the problem? how to overcome from this issue. how to get identical displays on both browsers?

the dynamic drop down menus are working very fine in IE(6.0) where as in Firefox
all elements are getting merged. so, what is the problem
any one knows solutions for this reply me

thank u

below i am sending the source code
Expand|Select|Wrap|Line Numbers
  1. #menu {
  2.     MARGIN-TOP: 0px; 
  3.     Z-INDEX: 100; 
  4.     WIDTH: 120px; 
  5.     MARGIN-RIGHT: 0px; 
  6.     FONT-FAMILY: Arial,Verdana,  Helvetica, sans-serif; 
  7.     POSITION: relative
  8. }
  9. #menu UL {
  10.     BORDER-RIGHT: #4D42D8 0px solid; 
  11.     PADDING-RIGHT: 0px; 
  12.     BORDER-TOP: #4D42D8 0px solid; 
  13.     PADDING-BOTTOM:0px; 
  14.     MARGIN: 0px 0px 0px 0px; 
  15.     BORDER-LEFT: #4D42D8 0px solid; 
  16.     PADDING-TOP: 0px; 
  17.     BORDER-BOTTOM: #4D42D8 0px solid; 
  18.     LIST-STYLE-TYPE: none
  19. }
  20. #menu UL LI UL {
  21.     LEFT: 110px; 
  22.     VISIBILITY: hidden; 
  23.     OVERFLOW: hidden; 
  24.     WIDTH: 116px; 
  25.     POSITION: absolute; 
  26.     TOP: 0px; 
  27.     HEIGHT: 0px
  28. }
  29. #menu .admissions UL {
  30.     MARGIN-TOP: 0px; 
  31.     VISIBILITY: hidden; 
  32.     OVERFLOW: hidden; 
  33.     POSITION: absolute; 
  34.     TOP: 0px; 
  35.     HEIGHT: 0px
  36. }
  37. #menu .RD UL {
  38.     MARGIN-TOP:  0px; 
  39.     VISIBILITY: hidden; 
  40.     OVERFLOW: hidden; 
  41.     POSITION: absolute; 
  42.     TOP: 0px; 
  43.     HEIGHT: 0px
  44. }
  45. #menu .students UL {
  46.     MARGIN-TOP: 0px; 
  47.     VISIBILITY: hidden; 
  48.     OVERFLOW: hidden; 
  49.     POSITION: absolute; 
  50.     TOP: 0px; 
  51.     HEIGHT: 0px
  52. }
  53. #menu .about UL {
  54.     MARGIN-TOP: 0px; 
  55.     VISIBILITY: hidden; 
  56.     OVERFLOW: hidden; 
  57.     POSITION: absolute; 
  58.     TOP: 0px; 
  59.     HEIGHT: 0px
  60. }
  61. #menu UL LI UL {
  62.     FILTER: progid:DXImageTransform.Microsoft.Alpha(opacity=95); moz-opacity: 0.95; opacity: 0.95
  63. }
  64. #menu UL LI {
  65.     FLOAT: left; 
  66.     POSITION: relative; 
  67.     height: 0px;
  68. }
  69. #menu UL LI A {
  70.     DISPLAY: block; 
  71.     PADDING-LEFT: 10px; 
  72.     FONT-WEIGHT: bold; 
  73.     FONT-SIZE: 10px; 
  74.     BACKGROUND: none transparent scroll repeat 0% 0%; 
  75.     FLOAT: left; 
  76.     WIDTH: 106px; 
  77.     COLOR: #100E5F; 
  78.     LINE-HEIGHT:15px; 
  79.     PADDING-TOP: 5px; 
  80.     HEIGHT: 21px; 
  81.     TEXT-DECORATION: none;
  82. }
  83. #menu UL LI A:visited {
  84.     DISPLAY: block; 
  85.     PADDING-LEFT: 10px; 
  86.     FONT-WEIGHT: bold; 
  87.     FONT-SIZE: 10px; 
  88.     BACKGROUND: none transparent scroll repeat 0% 0%; 
  89.     FLOAT: left; 
  90.     WIDTH: 106px; 
  91.     COLOR: #100E5F; 
  92.     LINE-HEIGHT:15px; 
  93.     PADDING-TOP: 5px; 
  94.     HEIGHT:21px; 
  95.     TEXT-DECORATION: none
  96. }
  97.  HTML #menu UL LI A {
  98.     WIDTH: 120px
  99. }
  100.  HTML #menu UL LI A:visited {
  101.     WIDTH: 120px
  102. }
  103. #menu TABLE {
  104.     BORDER-TOP-WIDTH: 0px; 
  105.     PADDING-RIGHT: 0px; 
  106.     PADDING-LEFT: 0px; 
  107.     BORDER-LEFT-WIDTH: 0px; 
  108.     BORDER-BOTTOM-WIDTH: 0px; 
  109.     PADDING-BOTTOM: 0px; 
  110.     MARGIN: -1px; 
  111.     PADDING-TOP: 0px; 
  112.     BORDER-COLLAPSE: collapse; 
  113.     BORDER-RIGHT-WIDTH: 0px
  114. }
  115. #menu UL LI:hover A {
  116.     BACKGROUND: #6A8ED2; COLOR: #fff;
  117. }
  118.  
  119. #menu UL LI A:hover {
  120.     BACKGROUND: #6A8ED2; COLOR: #fff;
  121. }
  122. #menu UL LI:hover UL {
  123.     BORDER-RIGHT: #B2B5B6 1px solid;
  124.      BORDER-TOP: #B2B5B6 1px solid; 
  125.      PADDING-LEFT: 0px;  
  126.      VISIBILITY: visible; 
  127.      OVERFLOW: visible; 
  128.      BORDER-LEFT: #B2B5B6 1px solid;
  129.       WIDTH: 100px; 
  130.       BORDER-BOTTOM: #B2B5B6 1px solid; 
  131.       POSITION: absolute; 
  132.       HEIGHT: auto
  133. }
  134. #menu UL LI A:hover UL {
  135.     BORDER-RIGHT: #B2B5B6 1px solid; 
  136.     BORDER-TOP: #B2B5B6 1px solid; 
  137.     PADDING-LEFT: 0px; 
  138.     BACKGROUND: #ECF6FA; 
  139.     VISIBILITY: visible; 
  140.     OVERFLOW: visible; 
  141.     BORDER-LEFT: #B2B5B6 1px solid; 
  142.     WIDTH: 100px; 
  143.     BORDER-BOTTOM: #B2B5B6 1px solid; 
  144.     POSITION: absolute; 
  145.     HEIGHT: auto
  146. }
  147. #menu UL LI:hover UL LI A {
  148.     PADDING-RIGHT: 0px; 
  149.     DISPLAY: block; 
  150.     PADDING-LEFT: 20px; 
  151.     BACKGROUND: none transparent scroll repeat 0% 0%; 
  152.     PADDING-BOTTOM: 5px; 
  153.     MARGIN-LEFT: 0px; 
  154.     COLOR: #4D42D8; 
  155.     LINE-HEIGHT: 14px; 
  156.     PADDING-TOP: 4px; 
  157.     HEIGHT: auto; 
  158.     TEXT-DECORATION: none;
  159.     BORDER-BOTTOM: 1px SOLID #d3d5d6;
  160. }
  161. #menu UL LI A:hover UL LI A {
  162.     PADDING-RIGHT: 0px; 
  163.     DISPLAY: block; 
  164.     PADDING-LEFT: 20px; 
  165.     BACKGROUND: none transparent scroll repeat 0% 0%; 
  166.     PADDING-BOTTOM: 5px; 
  167.     MARGIN-LEFT: 0px; 
  168.     COLOR: #4D42D8; 
  169.     LINE-HEIGHT: 14px; 
  170.     PADDING-TOP: 4px; 
  171.     HEIGHT: auto; 
  172.     TEXT-DECORATION: none;
  173.     BORDER-BOTTOM: 1px SOLID #d3d5d6;
  174. }
  175. #menu UL LI:hover UL LI:hover A {
  176.     BACKGROUND: #6A8ED2; COLOR: #FF0;
  177. }
  178. #menu UL LI A:hover UL LI A:hover {
  179.     BACKGROUND: #6A8ED2; COLOR: #FF0;
  180. }
  181. #nav_table {
  182.     HEIGHT: 221px; BACKGROUND-COLOR: #CDD1DF;
  183. }
  184. #nav_table .nav_td {
  185.     BACKGROUND-IMAGE:  WIDTH: 160px; 
  186. }
  187.  
Expand|Select|Wrap|Line Numbers
  1.  
  2. <body>
  3. <DIV id="main">
  4. <div id="headerh1"></div>
  5. <div id="headerh2">
  6.     <div id="buttona"></div>
  7.     <ul id="hmenulist">
  8.         <li><a title="Link: Home" href="index.html">Home</a></li>
  9.         <li><a title="Link: aboutus" href="trialdiv11a.html">About Us</a></li>
  10.         <li><a title="Link: Services" href="contactus.html">Contact Us</a></li>
  11.         <li><a title="Link: sevices" href="help.html">F A Q</a></li>
  12.  
  13.                     </ul>
  14. </div>
  15.     <div id="header2part">
  16.  
  17.     <div id="header2parta" align=left>
  18.         <form  id='search' name='searchFrm'  action='' method='get'  border="1  solid #000;">                     <input type="text" name="user" >
  19.         </div>
  20.  
  21.     <div id="header2partb">
  22.  
  23.         <input type="image" src="images/next.gif"  name="Search" alt="search" /></form>
  24.     </div>
  25. </div>
  26. <div id="headerh3"></div>
  27.  
  28.  
  29. <div id="lsnav">
  30. <TABLE id=nav_table cellSpacing=0 cellPadding=0 width=120 align=center 
  31.   border=0><TBODY>
  32.   <TR>
  33.     <TD class=nav_td>
  34.       <DIV id=menu>
  35.       <UL>
  36.         <LI class=about><A href="doctors.html">Doctors/Consultants<!--[if IE 7]><!--></a><!--<![endif]--> 
  37.         <TABLE>
  38.           <TBODY>
  39.           <TR>
  40.             <TD>
  41.               <UL>
  42.                 <LI><A href="">IITs Act - 
  43.                 1961</A> </LI>
  44.                 <LI><A href="">About 
  45.                 IIT Bombay</A> </LI>
  46.                 <LI><A href="">Location 
  47.                 &amp; Map</A> </LI>
  48.                 <LI><A 
  49.                 href="">International 
  50.                 Relations</A> </LI>
  51.                 <LI><A 
  52.                 href=""><STRONG>Campus 
  53.                 Diary</A> </LI>
  54.                 <LI><A 
  55.                 href=""><STRONG>Other 
  56.                 Related Links</A>
  57.                 <DIV></DIV></LI>
  58.                 <LI><A 
  59.                 href="">Contact 
  60.                 Us</A> </LI></UL></STRONG></STRONG></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  61.         <LI class=admissions><A href="hospitals.html">Hospitals<!--[if IE 7]><!--></a><!--<![endif]--> 
  62.  
  63.         <TABLE>
  64.           <TBODY>
  65.           <TR>
  66.             <TD>
  67.               <UL>
  68.                 <LI><A href="">Entrance 
  69.                 Examinations</A> </LI>
  70.                 <LI><A 
  71.                 href="">Undergraduate</A> </LI>
  72.                 <LI><A href="">Postgraduate</A> 
  73.                 </LI>
  74.                 <LI><A href="">Ph.D. 
  75.                 Programs</A> </LI></UL></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  76.         <LI class=academics><A href="diagnosticlabs.html">Diagnostic Centers<!--[if IE 7]><!--></a><!--<![endif]--> 
  77.  
  78.         <TABLE>
  79.           <TBODY>
  80.           <TR>
  81.             <TD>
  82.               <UL>
  83.                 <LI><A href="">Homepage</A> 
  84.                 </LI>
  85.                 <LI><A href="">Academic 
  86.                 Calender</A> </LI>
  87.                 <LI><A 
  88.                 href="">Departments</A> 
  89.                 </LI>
  90.                 <LI><A href="">Centres</A> 
  91.                 </LI>
  92.                 <LI><A href="">Schools / 
  93.                 IDPs</A> </LI></UL></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  94.         <LI class=RD><A href="pharmacies.html">Pharmacies<!--[if IE 7]><!--></a><!--<![endif]--> 
  95.  
  96.         <TABLE>
  97.           <TBODY>
  98.           <TR>
  99.             <TD>
  100.               <UL>
  101.                 <LI><A href="">Homepage</A> </LI>
  102.                 <LI><A href="">Research 
  103.                 Resources</A> </LI>
  104.                 <LI><A href="">Projects &amp; 
  105.                 Activities</A> </LI>
  106.                 <LI><A href="">Help for New 
  107.                 Client</A> </LI>
  108.                 <LI><A href="">Research 
  109.                 Fellowship</A> </LI>
  110.                 <LI><A href="">R&amp;D Jobs</A> 
  111.                 </LI></UL></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  112.         <LI class=outreach><A href="">Emergency<!--[if IE 7]><!--></a><!--<![endif]--> 
  113.  
  114.         <TABLE>
  115.           <TBODY>
  116.           <TR>
  117.             <TD>
  118.               <UL>
  119.                 <LI><A href="">Continuing 
  120.                 Education</A> </LI>
  121.                 <LI><A href="">Quality 
  122.                 Improvement</A> </LI>
  123.                 <LI><A href="">Distance Education</A> 
  124.                 </LI></UL></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  125.         <LI class=eship><A href="">Financing<!--[if IE 7]><!--></a><!--<![endif]--> 
  126.  
  127.         <TABLE>
  128.           <TBODY>
  129.           <TR>
  130.             <TD>
  131.               <UL>
  132.                 <LI><A href="">SINE</A> </LI>
  133.                 <LI><A href="">E-Cell</A> 
  134.           </LI></UL></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  135.         <LI class=students><A href="">Insurance<!--[if IE 7]><!--></a><!--<![endif]--> 
  136.  
  137.         <TABLE>
  138.           <TBODY>
  139.           <TR>
  140.             <TD>
  141.               <UL>
  142.                 <LI><A 
  143.                 href="">Hostels</A> 
  144.                 </LI>
  145.                 <LI><A 
  146.                 href="">Events</A> </LI>
  147.                 <LI><A 
  148.                 href="">Organisations</A> 
  149.                 </LI>
  150.                 <LI><A 
  151.                 href=""><I>Unnati</I></A> 
  152. </LI>
  153.                 <LI><A href=""><I>Gymkhana</I></A> 
  154.                 </LI></UL></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  155.         <LI class=alumni><A href="">Patient</A> </LI>
  156.  
  157. <LI><A href=""><I>Other Services</I></A> 
  158.                 </LI></UL></TD></TR></TBODY></TABLE><!--[if lte IE 6]></A><![endif]--></LI>
  159.         </UL></DIV></TD>
  160.     </TR></TBODY></TABLE>
  161.  
  162.  
  163.  
  164. </div>
  165.  
Nov 14 '07 #1
4 4539
drhowarddrfine
7,435 Recognized Expert Expert
Please use code tags.
This post belongs in the html/css forum.

If your markup looks right in IE but not Firefox then there is something wrong with the markup. Never use IE as a reference for how things should work because all versions of IE are old, buggy and non-standard.

If what you show is the complete markup, you are missing a doctype which will throw IE into 'quirks mode'. Did you validate this to make sure it is all correct?
Nov 14 '07 #2
ak1dnar
1,584 Recognized Expert Top Contributor
I don't know the reason for that gorgeous "color" in the HTML code snippet(after fixing [code=html] tags). Anyway this is not belongs to php forum, So I'll move it there to Doc's region. :D
Nov 14 '07 #3
pbmods
5,821 Recognized Expert Expert
It's from an entity that was apparently properly-escaped... except that it was unescaped by the time the CODE parser was compiling it.
Nov 15 '07 #4
Atli
5,058 Recognized Expert Expert
Hi.

If IE and Firefox and etc.. just won't play nicely together, you could always consider creating separate CSS files for each of them.

In most cases, you will only need to create one for IE, and one not for IE (FF, Opera, Netscape, etc...).
Nov 16 '07 #5

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

Similar topics

87
9522
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position: absolute;top:68px; left:563px; width:640px;height:480px;"> <IMG src="ReportImageBox_12.54.52.png" width=640 height=480></IMG>
14
2303
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT =============================================================== by Pamela Datatime Team -----------------
5
3108
by: SPE - Stani's Python Editor | last post by:
Hi, During optimizing SPE for Ubuntu, I found something strange. I have Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not working: >>> import webbrowser >>> webbrowser.open("http://www.python.org") It does not throw an exception, but is not able to launch a browser.
7
9587
by: Coder | last post by:
Hi I have the following code in java script, it is not giving proper output in FIREFOX but running fine in IE... can anybody help me out to make this run in FIREFOX . <script language="JavaScript"> var cntlName; var eleTarget = document.getElementById('hiding'); function showOrHide(){
1
1721
by: sbettadpur | last post by:
hello, i have created one website using div i.e total layout is designed using div only. if i saw that pages in Internet Explorer vesion 6, its showing very fine, but if i open same pages in Mozila firefox the entire layout get changed. i.e the width and height of boxes get increased. what is the problem? how to overcome from this issue....
7
2338
by: Liz | last post by:
My ListView components seem to produce distortion when they are scrolled in Details view; it looks almost like the text has a "strike-through" attribute applied to it. Does anyone know of a fix for this? If not, is there an alternative component available (that behaves like a ListView) ? TIA L
8
14928
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to cut and paste code that MSDN recommends for playing a simple wav file from inside an embedded file, like presumeably the 'resources' file .resx is. ...
0
1563
by: Smidy669 | last post by:
Ok so, a few weeks ago I installed windows 7 onto my laptop and I just realised that my Laptop's microphone is not working. When I record something, and then listen to it, all you can hear is distortion and no other sounds. So how do I fix this problem? Oh yea, I've also tried using different sound recording programs but I have had no luck with...
0
7698
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
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
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
7970
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
5219
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
3653
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...
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
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.