473,466 Members | 1,354 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Mozilla rendering incorrect while IE rendering is correct?

Hello list,

I am quite new to the whole concept of CSS2 driven websites and am now
stuck a bit.

Take a look:
http://www.pudaluda.com/fileadmin/te...rrierefrei.htm

This page renders correct (means: like I think it should) in IE6 -
Mozilla Firefox 0.9.3 does not display the background color nor the
background-image of the div #komplett if I set float:left (or any kind
of float) within #content.

Maybe someone could point me to a resource that points out my problem.
Thank you all very much in advance

Mathias
Jul 21 '05 #1
5 3801
"Mathias Schreiber [wmdb]" <cs******@wmdb.de> wrote:
Take a look:
http://www.pudaluda.com/fileadmin/te...rrierefrei.htm

This page renders correct (means: like I think it should) in IE6 -
Mozilla Firefox 0.9.3 does not display the background color nor the
background-image of the div #komplett if I set float:left (or any kind
of float) within #content.


Floated elements are taken out of the document flow, which means that
they do not contribute to the height of their parent element. To make
the parent expand to match the height of any floated children include
an element with clear: left (or whatever floats you need to clear)
after the last floated child and before the end of the parent.

Steve

Jul 21 '05 #2
Mathias Schreiber [wmdb] wrote:
Hello list,

I am quite new to the whole concept of CSS2 driven websites and am now
stuck a bit.

Take a look:
http://www.pudaluda.com/fileadmin/te...rrierefrei.htm
Pretty :)
This page renders correct (means: like I think it should) in IE6 -
Mozilla Firefox 0.9.3 does not display the background color nor the
background-image of the div #komplett if I set float:left (or any kind
of float) within #content.


At a quick glance, I think IE's wrong, as usual. Floats are in a sense
taken out of the flow; one consequence is that parent elements don't
expand to contain them. You float both the contained divs, hence the
container is left with nothing to contain & becomes rather short.

One solution, I think, would be to float the first div of links left &
set a left margin on the content div to accomodate the space the links
occupy.

To allow for the perhaps unlikely case where links are taller than
content, you might also want to add a div inside #komplett & after
content, with clear: left; to force it below the links (& thus expand
the parent div to contain them).

At that point you then need to contend with many possible bugs you might
encounter in IE. Peekaboo is one:
http://www.positioniseverything.net/.../peekaboo.html

This might also be useful if you've needed to set a height on an element
& are using floats: IE 3px bug,
http://www.positioniseverything.net/...reepxtest.html

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 21 '05 #3
Michael Rozdoba wrote:
Mathias Schreiber [wmdb] wrote:
Pretty :)
girls :)
At a quick glance, I think IE's wrong, as usual. Floats are in a sense
taken out of the flow; one consequence is that parent elements don't
expand to contain them. You float both the contained divs, hence the
container is left with nothing to contain & becomes rather short.
Explained like this it makes sense.
Like Steve suggested I put in a div called #clearer with a non-breaking
space in, set if to clear:both; et voila - works fine.
One solution, I think, would be to float the first div of links left &
set a left margin on the content div to accomodate the space the links
occupy.

To allow for the perhaps unlikely case where links are taller than
content, you might also want to add a div inside #komplett & after
content, with clear: left; to force it below the links (& thus expand
the parent div to contain them).
The DIV ID links is basically german.
This area can't be longer than the content because this is only a HTML
template for a CMS, this area isn't editable :)
At that point you then need to contend with many possible bugs you might
encounter in IE. Peekaboo is one:
http://www.positioniseverything.net/.../peekaboo.html
nice, thanks
This might also be useful if you've needed to set a height on an element
& are using floats: IE 3px bug,
http://www.positioniseverything.net/...reepxtest.html


thanks again :)

peace
mathias
Jul 21 '05 #4
Mathias Schreiber [wmdb] <cs******@wmdb.de> wrote:
This page renders correct (means: like I think it should) in IE6


You've gotten very good responses, so I'll simply state this rule of
thumb: whenever IE does something different than Mozilla or Opera
regarding CSS, there's a very high probability - close to certainty -
that IE is the one that's wrong.
Jul 21 '05 #5
Neal wrote:
You've gotten very good responses, so I'll simply state this rule of
thumb: whenever IE does something different than Mozilla or Opera
regarding CSS, there's a very high probability - close to certainty -
that IE is the one that's wrong.


Rule accepted :)
This time the weird thing was that I didn't know about floats enough so
that by my error IE displayed how I wanted it to look whilst others didn't.
Interesting:
Amaya displays crap :)
Jul 21 '05 #6

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

Similar topics

6
by: David Opstad | last post by:
I have a question about text rendering I'm hoping someone here can answer. Is there a way of doing linguistically correct rendering of Unicode strings in Python? In simple cases like Latin or...
4
by: Don Adams | last post by:
Does the Mozilla browser even support CSS? Very few of my stylesheet formats work in Mozilla. Is there a local stylesheet that is overriding my stylesheet? If so, is there an option to turn off...
30
by: Matt Probert | last post by:
Is it just me (probably) or is Mozilla and the newer Firefox full of CSS rendering bugs? I ask, because some strange effects occur with Mozilla and Firefox which don't happen in Opera and dare I...
1
by: David Gardner | last post by:
When accessing a VB.net application I've created with mozilla it replaces div tags with table tags. I realize that this is a "feature" of .NET to support browsers that are older but Mozilla and...
3
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and...
49
by: Aidan | last post by:
I rely heavily on MSDN for documentation when it comes to HTML/DHTML/JavaScript/CSS but as a result I often have problems getting my stuff to work in Netscape/Mozilla/Firefox. I like the MSDN...
1
by: Adam | last post by:
hi! the code below without the doctype definition works fine in both IE and Mozilla. if I add the doctype line code works ok in IE but in Mozilla a black boarder apperas around the picture and I...
4
by: No One | last post by:
For whatever reason, when an ASP.Net control sees that the browser is Mozilla based, it returns HTML code that contains things like <font /> tags while returning style attributes for IE. I am...
1
by: NancyASAP | last post by:
I have a label on my ASP.NET form. It has a cssclass that includes a background color. I am dynamically putting text in this label. The text contains some embedded html (I want to display part...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
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...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.