473,493 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Floats Problem

Hi,

Could somebody please take a look at the following page:

http://www.johntopley.com/development/floats.html

I want the menu to be displayed on the left, which it is in IE. In all
other browsers the menu appears to the left, but before the main
content. How can I fix this?

Thanks,

John
Jul 20 '05 #1
3 1571
Els
John Topley wrote:
Hi,

Could somebody please take a look at the following page:

http://www.johntopley.com/development/floats.html

I want the menu to be displayed on the left, which it is in
IE. In all other browsers the menu appears to the left, but
before the main content. How can I fix this?


Give the content a width, or don't float it right. If you want
it to take up all the space left to the right of the menu, don't
float it, but give it a left margin of the same size as the
width of the menu.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Cure - Inbetween Days (Acoustic)
Jul 20 '05 #2
"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
Give the content a width, or don't float it right. If you want
it to take up all the space left to the right of the menu, don't
float it, but give it a left margin of the same size as the
width of the menu.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Cure - Inbetween Days (Acoustic)


Thanks. I forgot to mention that the menu is optional (i.e. the content
should be full width if there's no menu), which is why I set the content
width to auto and why I can't set the left-margin to the same size as
the width as the menu.

Is what I'm trying to do possible?

John
Jul 20 '05 #3
Els
John Topley wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:Xn*****************@130.133.1.4...
Give the content a width, or don't float it right. If you
want it to take up all the space left to the right of the
menu, don't float it, but give it a left margin of the
same size as the width of the menu.


Thanks. I forgot to mention that the menu is optional (i.e.
the content should be full width if there's no menu), which
is why I set the content width to auto and why I can't set
the left-margin to the same size as the width as the menu.

Is what I'm trying to do possible?


Only thing I can think of right now is to add a style
#content{margin-left:0;}
to the pages without menu...

If it's the user who decides if he wants a menu or not, make
that style change go together with the decision of the user.

I've done something like that on
http://locusmeus.com/tiago.html
There's a quite wide image on the left side, and this leaves
short lines to read on smaller windows. The user can click
"move picture to the left", which appears to lead to a
different stylesheet, while in reality it leads to
/tiagoalt.html , which is the same page, with some style added
in the <head>.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #4

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

Similar topics

0
5018
by: Charles Blaquière | last post by:
While noodling around, looking for a good layout for an "events calendar" page, I came upon a problem that has me stymied. Have a look at http://kpuc.org/events/upcoming-2.html . The basic...
8
2458
by: Tom | last post by:
Has anyone ever seen a IComparer for floats the returns magnitude. i.e. instead of returning -1, it would return -5. To let you know HOW different the two numbers are. obviously for int it is a -...
2
3609
by: geskerrett | last post by:
In the '80's, Microsoft had a proprietary binary structure to handle floating point numbers, In a previous thread, Bengt Richter posted some example code in how to convert these to python floats;...
6
5450
by: sbalko | last post by:
Hi, I am trying to read Java-floats (IEEE 754 encoding) stored in a binary file from C (gcc on linux/i386, more specifically). Unfortunately, C seems to expect floats to be stored somewhat...
3
1620
by: freelanceinaz | last post by:
My problem page is at http://girlschorus.org/test.html I have a container with a relatively positioned graphic at the top, then two floats which are relatively positioned (for a a two-column...
9
1536
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...
13
2318
by: yb | last post by:
Hi, Is there a CSS method to clear a float such that it aligns with the left content edge. For example: X X X X X X X X
16
4111
by: luca bertini | last post by:
Hi, i have strings which look like money values (ie 34.45) is there a way to convert them into float variables? everytime i try I get this error: "numb = float(my_line) ValueError: empty string...
1
2029
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...
6
2732
by: Hendrik Maryns | last post by:
Hi, There is a little problem with the header on the page I recently converted from frames to proper HTML+CSS. The top part with the navigation used to be the top frame but is now included via...
0
6989
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
7157
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,...
1
6873
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
5453
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,...
1
4889
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...
0
4579
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...
0
3088
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
285
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...

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.