<html>
<head>
<style>
..left {
float : left;
}
..left {
float : right;
}
#container {
overflow: auto;
border: 1px solid red;
}
</style>
</head>
<body>
<div id="container" >
<div class="left">le ft <br />sdsd</div>
<div class="right">r ight</div>
</div>
ddd
</body>
</html>
according to quirk mode, if i use overflow: auto, i can managed to
clear the float automatically, yes, this work for FF & Opera, but nor
IE
any hints for this fix?
thanks. 2 2318
howa wrote:
>
according to quirk mode, if i use overflow: auto, i can managed to
clear the float automatically, yes, this work for FF & Opera, but nor
IE
What are you trying to do? What does not work? Why are you depending on
a broken feature?
Where is the URL to a test case?
Putting "ddd" in a block element where it belongs may take care of your
problem.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
howa wrote:
>
#container {
overflow: auto;
border: 1px solid red;
}
according to quirk mode, if i use overflow: auto, i can managed to
clear the float automatically, yes, this work for FF & Opera, but nor
IE
As usual, posting a code snippet doesn't always tell the whole story.
You should post a URL.
I assume you refer to: http://www.quirksmode.org/css/clearing.html
Guessing from what you did post, 2 likely problems are:
1. No DOCTYPE, which triggers quirks mode so all bets are off.
2. No properties assigned to #container that cause IE to switch on its
proprietary "hasLayout" mode. The article even says this is required.
any hints for this fix?
Try reading more carefully?
--
Berg This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lostinspace |
last post by:
After four+ years of using FrontPage in a limited capacity and having
created over 600 pages on my sites, I've finally (at least for the most
part) abandoned FP, to begin the process of converting those pages.
There are some things (a result of this transition,) which I'm not too
happy about :-(
I'm using 1st Page 2000. Much of my content is created in Word and then cut
and pasted from Word-to-NotePad-to-the page. Formerly with FP the...
|
by: Marek Mänd |
last post by:
I have simple structure like:
<div>
<h3 style="text-align:center;">
<span style="float:right;">input type="image"/></span>
<span style="float:left;">input type="image"/></span>
boxes titlebar
</h3>
<div>
box content
|
by: Daphne Tregear |
last post by:
Is anyone able to improve on this solution, and enable me to do
without tables completely?
http://www.cs.man.ac.uk/~daf/i-p-c-s.org/faq/gallery_old.php
uses a table to lay out the thumbnails and their captions. This a)
uses a table, b) wastes space when the window is large and c) overlaps
the RHS div when the window is small.
I use the same approach for
|
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 < float(Y) )?
|
by: Alexander Malkis |
last post by:
What is the biggest float number f so that -f doesn't overflow and is
still representable as a float.
--
Best regards,
Alex.
PS. To email me, remove "loeschedies" from the email address given.
| |
by: laurakr |
last post by:
I am trying to use a clear to get my bottom nav bar below the quote box
on the right, but it isn't working. I would like the bottom edge of the
quote box to "stick" to the footer nav bar but copy to be able to flow
to the left of the quote box. For the bonus round I would like the
right edge of the box to align with the right edge of the footer Could
someone take a look at my code and help a newbie troubleshoot? my email
is lroeder at...
|
by: felipevaldez |
last post by:
how can I put an element below another element, that's not absolutely
positioned?
so I have a n element, called X, and next to that, an element Y
X
Y
XXXXXX
|
by: Sarita |
last post by:
Hello,
this might sound stupid, but I got a really nice homepage template
which unfortunately is a 3-Column Fixed Width CSS format. Now I don't
have any content for the right column and would like the middle column
just to use up that space instead.
Any way this is possible?
Thanks for your help, it is highly appreciated!
|
by: donpro |
last post by:
https://testbed.odysseyshipping.com/index.php
This is driving me nuts. I've spent much time trying to style this
page footer but because I cannot set widths using "display: inline".
I've tried using floats. Now, for some reason, I can't get my borders
to display properly as it seems to nudge to the right for each level
of my footer (Firefox and IE).
Below is the CSS code.
|
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...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |