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

Float inside a float (IE bug)

Hello all, I'm having an issue with (something like) the following:

<div style="background:blue; float:right;">
<div style="background:orange; float:right;">AAA</div>
</div>

In FF, I see none of the blue of box, only the orange 'AAA' box floated to the right, exactly as I expect. In IE, however, the blue box fills the page width 100%. It's as if it has lost its float.

I've been searching for a few hours, and although there are a lot of discussions on IE bugs, I couldn't find one on this particular issue. Any ideas how I can prevent this?
Jun 23 '10 #1
1 1904
JKing
1,206 Expert 1GB
I think this is an issue with how the two browsers choose a width for your outside div. IE seems to be defaulting to a width of 100%. Applying a width to your outer div will fix this issue.
Jun 23 '10 #2

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

Similar topics

4
by: cybertof | last post by:
Hello, I have the strange beeing : float f1 = 108.88F; float f2 = 111.11F; float f3 = f1 - f2; double d1 = 108.88; double d2 = 111.11; double d3 = d1 - d2;
1
by: Amir Kolsky via .NET 247 | last post by:
Hello all, this is my first time here so please be gentle :-) We have a VC++ program that does many floating point (float, notdouble) and we are seeing that the results of runs under VC6 andCV7...
3
by: chrisn | last post by:
Hi, (Using ASP.Net 2.0) I have a wizard control inside a detailsview control. When I attempt to call the InsertItem method on the DetailsView I get an error "ObjectDataSource...
4
by: Pixie Songbook | last post by:
Hi, I'm trying to write a program using the Dev C++ 4.9.9.2 compiler that takes input numbers from a word document, sums them together, and then gives me a result. It should be easy as the book I...
3
by: shapper | last post by:
Hello, I was reading an article and I can't figure something. I have: div.float { float: left; } And the HTML:
8
by: vjnr83 | last post by:
Hi, I have a doubt: what is the difference between float **p and float *p? Thanks in advance, Vijay
1
by: Florian Lindner | last post by:
Hello, I get the exception above when trying to use a float as radix and exponent, e.g.: Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: unsupported operand type(s)...
3
damir
by: damir | last post by:
Below is the HTML and CSS. What I can't manage it is to make IE7 to display it right. Here is also the link how it looks in any other browser and in IE7. Please help me out! /* HTML */ <div...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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,...

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.