473,796 Members | 2,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

width difference in IE and Mozilla

2 New Member
Hi all,

I am creating tables using CSS ( tag).I am facing problem of width . I am giving 70% and 30% width to the respective div`s but it showing me difference in IE and Mozilla its not showing the same width on both browser.

Copy paste the following code to view the problem -

<html>
<head>
<title>Tables Through CSS</title>
<style type="text/css">
<!--


#mainBody{
height:409px;
border-top: #003366 1px solid;
background-image: url(../images/grBg.jpg);
background-repeat:repeat-x;
margin:0 1px 0 1px;
overflow:auto;
background-attachment: fixed;
}

#sectionRight{
background-color:#00FFFF;
width:25%;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color: #666666;
font-weight: normal;
padding-top: 20px;
padding-right: 20px;
padding-bottom:20px;
padding-left: 20px;
text-align: justify;
line-height:15px;
float:right;
height:100%;
margin:0;
background-color:#CC6600;
}

#sectionLeft{
width:65%;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color: #666666;
font-weight: normal;
padding-top: 20px;
padding-right: 20px;
padding-bottom:20px;
padding-left: 20px;
text-align: justify;
line-height:15px;
float:left;
height:100%;
background-color:#CCCCFF;
margin:0;

}

#pointBluIcn{
width:100%;
padding-right: 20px;
padding-bottom:20px;
padding-left: 30px;
text-align: justify;
line-height:15px;
float:left;
background-color: #999999;

}

.bullet{
background-image:url(../images/bullet.gif);
background-repeat: no-repeat;
background-position: 15px;
background-repeat: no-repeat;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color: #006fa0;
font-weight:bold;
padding-top: 20px;
padding-right: 20px;
padding-bottom:20px;
padding-left: 30px;
text-align: justify;
line-height:2px;
}


.bulletHed{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
color:#333333;
font-weight:bold;
}
#btmBlank{ width:100%; height:15px; background-color:#CC9933;}

.welcomeTxt{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:15px;
font-weight:bold;
color: #3333FF;
}-->
</style>
</head>


<body>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0" class="bodyBord er" >


<tr>
<td><div id="mainBody">
<div class="welcomeT xt"> Welcome to the</div>
<div id="sectionLeft "> The nature of work is changing. Today's business teams are virtual, made up of members from different organizations, specialties and locations. Managing the work flow and knowledge of these distributed teams is a challenge.

DocuTracks makes it easy to work with colleagues who are far away. Unlike collaboration software that focuses on internal corporate teams, DocuTracks offers a secure way for companies to collaborate and share documents with team members outside their firewall. <br>
<br>
<div id="pointBluIcn ">
<div class="bulletHe d">DocuTrack s on-demand collaboration service lets you:</div>
<div class="bullet"> Get working today! No team training required.</div>
<div class="bullet"> Keep your group organized and productive - effortlessly! </div>
<div class="bullet"> Share large files instantly and reduce courier spending!</div>
<div class="bullet"> Add customer services. Increase satisfaction and revenue.</div>
<div class="bullet"> Streamline vendor communications. Get products to market quickly.</div>
<div class="bullet"> Reduce IT total cost of ownership.</div>
</div>
</div>
<div class="style1" id="sectionRigh t">Try </div>
</div></td>
</tr>
</table>
</body>
</html>
May 4 '07 #1
1 2684
drhowarddrfine
7,435 Recognized Expert Expert
Without a proper doctype, IE goes into quirks mode and uses their broken "box model". So the margins are in the wrong place. See the sticky at the top of the board. Use the html4.01 strict doctype.
May 4 '07 #2

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

Similar topics

3
14867
by: Jack Black | last post by:
Using Mozilla 1.4... I need to get the Height and Width of an object (in this case, a parent DIV) for the purpose of creating a textbox of max width and height in the container. Since innerHeight/Width don't work correctly in Mozilla 1.4, I've tried using getComputedStyle as noted in another newsgroup, but with no success; errors tend to range from "Cannot create object in this context" to other various errors... The below sample...
14
21545
by: delerious | last post by:
I need to determine an element's width and height in pixels (not including padding, border, and margin) in Javascript. The element will not have width or height styles specified. In Mozilla, I know I can use document.defaultView.getComputedStyle() to do this. IE does not support document.defaultView.getComputedStyle(). It supports offsetWidth/offsetHeight, but those include the padding and border. IE also supports...
21
86529
by: Arthur Connor | last post by:
I want to embed some source code lines in an article on a web page. As usual I want to use a fixed sized font for this souce code lines (read: the letters should have all the same width). The font normally used when I declare a <PRE>...</PRE> tag is very ugly. Is there another font which I can use to display fixed size text ? Arty
5
2039
by: Olav Tollefsen | last post by:
Take a look at this page: http://www.webinnovation.no/test/test.htm Why is the left table with the text "Menu" not 160 pixels as stated in the HTML code? Olav
5
6122
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge of the screen. I want it to only extend as far as it needs to to nicely contain the content within (a couple of links). Is width: auto the wrong property to do this? Is Mozilla rendering the style wrong?
0
3071
by: javaguy | last post by:
I have a table I hide show/hide through a pair of divs. The show/hide part works fine in both Mozilla and MSIE. When switching between the hide and show versions the Mozilla browser keeps them in small width, about 740 pixels. When switching between show/hide with MSIE the "show" table wants to display about 960 pixels. If I set the outer table to ' style="table-layout: fixed;" ' then MSIE chooses to force the width to 960 pixels.
15
122167
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width: 123px; height: 456px;" alt="">
1
4916
by: Veerle | last post by:
Hi, I have 2 div blocks with each div taking up half of the page width. So in the CSS they both have width: 50%. See http://home.scarlet.be/~vv991306/leftright.html In Mozilla Firefox and Opera, depending on the width of the browser window, sometimes there is a 1 pixel gap between the 2 div blocks. In Internet Explorer, this is never the case.
3
2928
by: McKirahan | last post by:
I have a Web page that uses some JavaScript and CSS. I have specified a three column table with a fixed-width left and right side; the center colum expands to fill the page. Within this portion of the table I have another table that specifies "display:none" to hide it. When the page loads, if JavaScript is enabled then it will change to "display:block". However, the problem under Firefox is that the width of
0
9685
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
9535
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,...
0
10465
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9061
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...
1
7558
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.