473,397 Members | 1,969 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,397 software developers and data experts.

float-problems in IE and difference to Gecko

Hi Folks,

I have 2 little problems:
1) http://birkenmaier.org/b.php
IE 6.0 does something weired here: in the red box the first lines of
text have a slight indet (2 or 3 pixels only). This seems to be
triggered by the floating box on the left (yellow), since only the text
lines that span the height of the floating box are affected.

2) http://birkenmaier.org/c.php
Layout difference of this file when looking at with IE 6.0 and Firefox
0.9.1 (and other Gecko-based Browsers). It's about the floating box
again (yellow).
IE 6.0 is fine with this line:
margin: 1em 0em 0em 0.5em;
FireFox is ok with this line:
margin: 0em 0em 0em 1em;
What I completely don't understand is that I have to give 0.5em for the
left border to get a 1em border
And what about the top-border? Why does FireFox not need a top-margin?

Thank's a lot for your help!
-Rainer
Jul 20 '05 #1
2 2293
Rainer Birkenmaier <rb*****@birkenmaier.org> wrote in message news:<pa****************************@birkenmaier.o rg>...
Hi Folks,

I have 2 little problems:
1) http://birkenmaier.org/b.php
IE 6.0 does something weired here: in the red box the first lines of
text have a slight indet (2 or 3 pixels only). This seems to be
triggered by the floating box on the left (yellow), since only the text
lines that span the height of the floating box are affected.
here is a site that explains that very bug:
http://www.positioniseverything.net/...reepxtest.html
2) http://birkenmaier.org/c.php
Layout difference of this file when looking at with IE 6.0 and Firefox
0.9.1 (and other Gecko-based Browsers). It's about the floating box
again (yellow).
IE 6.0 is fine with this line:
margin: 1em 0em 0em 0.5em;
FireFox is ok with this line:
margin: 0em 0em 0em 1em;
What I completely don't understand is that I have to give 0.5em for the
left border to get a 1em border
And what about the top-border? Why does FireFox not need a top-margin?

Thank's a lot for your help!
-Rainer


this will fix that problem (I basically just moved the margins to the
body element so it would be uniform):

#sidebar_frame {
position: relative;
float: left;
background-color: yellow;
border-style: solid;
border-width: 1px;
padding: 1em;
margin: 0;
width: 7em;
}

#content_frame {
position: relative;
background-color: red;
border-style: solid;
border-width: 1px;
margin: 0 0 0 10em;
padding: 1em;
}

body {
font-family: arial, helvetica, sans-serif;
padding: 0;
margin: 1em;
}
Jul 20 '05 #2
On Mon, 26 Jul 2004 14:06:41 -0700, The Master wrote:
here is a site that explains that very bug:
http://www.positioniseverything.net/...reepxtest.html
...
this will fix that problem (I basically just moved the margins to the
body element so it would be uniform):


Cool, thank you so much :-)
-Rainer
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Pat | last post by:
Give two double-typed variable X and Y. If (X==Y) is true, then how about the following results: (float(X) > float(Y))? (float(X) < float(Y))? (float(X) >= float(Y))? ( X > float(Y) )? ( X...
3
by: Robb Gilmore | last post by:
Hello, We have a C#.NET app which is calling a Java webservice. We use the wsdl file exportted from the java webservice to create our web-reference in Visual Studio. We are able to create the...
6
by: Dave win | last post by:
Hi all: I'm confused with the expression "(float *())". Book says that this is a cast. But, I have no idea of this expr. why could this expr ignore the variable??? Thanx!!!
9
by: Sisyphus | last post by:
Hi, I have some software that does the following (in an attempt to determine whether the double x, can be represented just as accurately by a float): void test_it(double x) { float y = x;...
11
by: Marc Pelletier | last post by:
Hello, I am having trouble implementing the following callback: CNCSError CECWCompressor::WriteReadLine(UINT32 nNextLine, void **ppInputArray) where ppInputArray is a 3 by x array. The...
20
by: ehabaziz2001 | last post by:
That program does not yield and respond correctly espcially for the pointers (*f),(*i) in print_divide_meter_into(&meter,&yds,&ft,&ins); /*--------------pnt02own.c------------ ---1 inch = 2.51...
9
by: Gregory.A.Book | last post by:
I am interested in converting sets of 4 bytes to floats in C++. I have a library that reads image data and returns the data as an array of unsigned chars. The image data is stored as 4-byte floats....
6
by: trevor | last post by:
Incorrect values when using float.Parse(string) I have discovered a problem with float.Parse(string) not getting values exactly correct in some circumstances(CSV file source) but in very similar...
13
by: Shirsoft | last post by:
I have a 32 bit intel and 64 bit AMD machine. There is a rounding error in the 8th digit. Unfortunately because of the algorithm we use, the errors percolate into higher digits. C++ code is...
3
by: Arnie | last post by:
Folks, We ran into a pretty significant performance penalty when casting floats. We've identified a code workaround that we wanted to pass along but also was wondering if others had experience...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...
0
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...
0
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,...

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.