472,956 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,956 software developers and data experts.

floats mess up backgrounds and lists

http://www.frostjedi.com/terra/scrip...ackground.html

In Internet Explorer, the background works as desired. In FireFox,
however, the red background of "menu" is covering up the background of
"main".

Also, lists are not being displayed as desired in either. I'd like
the bullets to appear outside of "menu", but they don't. In FireFox,
they display inside of "menu" and in Internet Explorer, they don't
appear at all (or if they do, they appear under "menu").

Any ideas as to how I can achieve the desired effects?

Nov 12 '07 #1
1 1739
yawnmoth wrote:
http://www.frostjedi.com/terra/scrip...ackground.html

In Internet Explorer, the background works as desired. In FireFox,
however, the red background of "menu" is covering up the background of
"main".
IE is violating the specs here.

From CSS 2.1 9.5 Floats:

Since a float is not in the flow, non-positioned block boxes created
before and after the float box flow vertically as if the float didn't
exist. However, line boxes created next to the float are shortened to
make room for margin box of the float....

The div's background is part of the div itself, which acts as if the
float doesn't exist for positioning purposes, and the menu thus goes on
top of the background.
Also, lists are not being displayed as desired in either. I'd like
the bullets to appear outside of "menu", but they don't. In FireFox,
they display inside of "menu" and in Internet Explorer, they don't
appear at all (or if they do, they appear under "menu").
The outer part of the list -- the bullets -- is not a line box and will
be obscured by the float. The individual elements are line boxes and are
thus shunted to the side of the float.
Any ideas as to how I can achieve the desired effects?
Which way is the menu supposed to go? To the left of all or just to the
left of the list? In any case, adding a sufficiently thick margin will
achieve the effects. 9 ems seems to be the right amount.

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Nov 12 '07 #2

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

Similar topics

14
by: Filippo Giarratano | last post by:
Hi -- I'm trying to figure out how to make a photo thumbnail gallery page using CSS and no tables that (1) has a caption below each image and (2) is centered -- so that as browser width changes the...
11
by: Chris Beall | last post by:
Here's the problem: http://pages.prodigy.net/chris_beall/Demo/theproblem.html The page contains inline text, then some additional pairs of text which are floated right and left. (This is a...
8
by: Madhusudan Singh | last post by:
Is it possible to convert a very long list of strings to a list of floats in a single statement ? I have tried float(x) and float(x) but neither work. I guess I would have to write a loop if...
4
by: Adam Warner | last post by:
Hi all, I'm used to ANSI Common Lisp implementations sanely printing single and double floats. By sane I mean the printed decimal representation mimics the underlying binary precision of the...
6
by: Jeffrey Goldberg | last post by:
I suspect that this is a common problem (and so with a known solution/work-around), but my attempts to find it have failed. I have a float (a table of content box) on the left of a page. The...
11
by: Steve | last post by:
I'm trying to create a list range of floats and running into problems. I've been trying something like: a = 0.0 b = 10.0 flts = range(a, b) fltlst.append(flts)
9
by: joanne matthews (RRes-Roth) | last post by:
I'm getting different results when I add up a list of floats depending on the order that I list the floats. For example, the following returns False: def check(): totalProp=0 inputs= for each...
6
by: Peter Wuertz | last post by:
Hi, I'm writing a C module for python, that accesses a special usb camera. This module is supposed to provide python with data (alot of data). Then SciPy is used to fit the data. My question...
2
by: donpro | last post by:
https://testbed.odysseyshipping.com/ In the footer, I am having problem with the list-style-image statement in my CSS 1) In Firefox, my custom image shows in front og all list items EXCEPT...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.