473,796 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ 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 3821
"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
3024
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 Japanese I can just print the string and see the correct results. However, I don't know how to get Python to do the right thing for writing systems which require contextual processing. For example, let's say I create this Unicode string in Arabic: ...
4
3131
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 the local stylesheet? Also, I would treat Mozilla like Netscape 4.x in my PHP code; however, I can't see in the user agent (shown below) any way to determine that the browser is Mozilla. I've seen other browser user agents with "Gecko" in them...
30
3006
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 say it, IE. Like, for example, non-selection of a font-face for one style element, even though it is selected okay for another element and the colour, decoration and size are all rendered correctly!
1
1695
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 Firefox have terrific support for current HTML standards. Our application is going to be viewed by Mozilla-based browsers and the markup that displays in anything other than IE is ugly. (Changing your user agent to IE in mozilla renders the same...
3
2092
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 1.6, the function msg works fine if it's installed as an onclick handler for the button, but fails as an onload handler for the page. The error is "console has no properties", and is triggered by the line.
49
2985
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 online documentation (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/re ference/objects.asp) because it has complete lists of DHTML objects, properties, methods, collections and event and for each element you can easily view...
1
1549
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 can't remove it. Do you have any ideas how to correct it? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
1172
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 testing against the latest Firefox browser and not the old stinky Netscape 4. Is there a way to tell the ASP.Net server to treat Mozilla as a new browser?
1
1705
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 of label contents as a list so it uses <ul> and <li>). The format of the string assigned to label text looks like this: "An error occurred:<ul><li>message 1</li><li>message2</li></ul>" The label renders in both browsers the same. Here's the...
0
9683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
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, 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...
1
10176
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,...
0
9054
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7550
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 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...
0
6792
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
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...
3
2927
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 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...

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.