473,396 Members | 2,108 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,396 software developers and data experts.

divs correctly aligned in IE and not in FF

Hi,

i have this page: http://www.foodtoknow.org/test.htm

when i look at it in IE the red div's in the center of the screen are
aligned as they should (leaving a white border to the left the same size as
the border to the left of the top bar picture).

However, when i look at it in FF the red div's are put completely to the
right border of the white box, not leaving the white border.

I have validated both the HTML and CSS against the W3.org validator and for
both i get that they are valid. So something else must be wrong or missing.

I've been looking at this for days but it's driving me crazy, cause i can't
find what's wrong.

Does anyone have an idea what might be happening?

Thx in advance,

Regards,

Thomas
Jul 21 '05 #1
4 1350
Els
Mr. T. wrote:
Hi,

i have this page: http://www.foodtoknow.org/test.htm
I think that causes a deja vu here...
when i look at it in IE the red div's in the center of the screen are
aligned as they should (leaving a white border to the left the same size as
the border to the left of the top bar picture).

However, when i look at it in FF the red div's are put completely to the
right border of the white box, not leaving the white border.
Yup, definitely a deja vu ;-)
I have validated both the HTML and CSS against the W3.org validator and for
both i get that they are valid. So something else must be wrong or missing.

I've been looking at this for days but it's driving me crazy, cause i can't
find what's wrong.

Does anyone have an idea what might be happening?


I still think what I said last time. Didn't that work?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #2
Hi Els,
I still think what I said last time. Didn't that work?

Nope, i played with the padding and margins as you suggested, but the only
thing happening was that it didn't look right in IE anymore either. Also
removing or changing the "float" didn't help either.

I tried to put a container around the boxes, but the problem was that in IE
that was correct (the container stood where it needed to) but in FF the
container also went completely the wrong way. It was positioned behind the
big red box on top in stead of below where it should be.

That's why i'm reposting my question, because it didn't work that way.

Regards,

Thomas
Jul 21 '05 #3
Els
Mr. T. wrote:
Hi Els,
I still think what I said last time. Didn't that work?

Nope, i played with the padding and margins as you suggested, but the only
thing happening was that it didn't look right in IE anymore either. Also
removing or changing the "float" didn't help either.

I tried to put a container around the boxes, but the problem was that in IE
that was correct (the container stood where it needed to) but in FF the
container also went completely the wrong way. It was positioned behind the
big red box on top in stead of below where it should be.


Okay, well, here is a patch - add this bit to your stylesheet:

..contentbox{
margin-right:6px;
}
* html .contentbox{
margin-right:0;
}

I didn't check in any other browsers than IE6, FF1 and Opera8, and I
think it's more of a patch than a real fix actually.

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

this works fine! Thx a lot!

Thomas

"Els" <el*********@tiscali.nl> schreef in bericht
news:8y*****************************@40tude.net...
Mr. T. wrote:
Hi Els,
I still think what I said last time. Didn't that work?

Nope, i played with the padding and margins as you suggested, but the
only
thing happening was that it didn't look right in IE anymore either. Also
removing or changing the "float" didn't help either.

I tried to put a container around the boxes, but the problem was that in
IE
that was correct (the container stood where it needed to) but in FF the
container also went completely the wrong way. It was positioned behind
the
big red box on top in stead of below where it should be.


Okay, well, here is a patch - add this bit to your stylesheet:

.contentbox{
margin-right:6px;
}
* html .contentbox{
margin-right:0;
}

I didn't check in any other browsers than IE6, FF1 and Opera8, and I
think it's more of a patch than a real fix actually.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 21 '05 #5

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

Similar topics

2
by: Adam Siler | last post by:
i want to display a series of inline, fixed-width DIVs that will wrap into columns - a table, basically. i can do it under Internet Explorer, but the same code under Netscape or Opera does not...
20
by: Firas D. | last post by:
http://firasd.org/ The divs of the 'box' class seem to have the effect I want in IE (namely: consistent height and horizontal alignment along the set of divs), but it totally falls apart in...
12
by: Michael Ramey | last post by:
Hi, I've have two divs, that are laid out side-by-side. (I'm floating the first div to the left) I need to set up css on these two divs so that the second div is vertically aligned to the...
0
by: Olly | last post by:
I am using the following pure css layout with a header and footer: http://www.fu2k.org/alex/css/layouts/3Col_NN4_FMFM.mhtml The left column floats to the left of the main content (middle...
2
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
4
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
3
by: Oddball | last post by:
I have a problem with the positioning of two divisions. They are containined within a content division in which all the page content happens (ie not the menus, etc.). The behavior I would like...
6
by: veerleverbr | last post by:
Hi, I have the following html: <div id="content"> <div id="leftpart">...</div> <div id="rightpart">...</div> </div> leftpart en rightpart are in the css set to float left. The content of...
6
by: Liam Gibbs | last post by:
Hello everyone, I'm trying to program a church web site and I'm having a number of problems with the layout. The html is at http://www.altmarvel.net/Liam/index.html and the css is at...
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
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
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,...
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.