Browser Rendering Example

In spite of the intense standards activity, all modern browsers to not render XHTML/CSS code in the same manner. Shown below are the results of two different browsers rendering the example from Lesson 4. The problem is how Firefox handles a <div> element. Fortunately there is a website that will evaluate your web page rendering in many different browsers. However, your web page must be hosted on a publicly available website for that evaluation.

Without ClearThis picture shows how Firefox renders the example page without adding either clear:left or clear:both to the div.center class.


This is the result in Firefox with clear:left added to the div.center class
With Clear

Text FillsIf the browser window is narrow such that the text fills the space to the right of the image, the clear:left is not required.


Here are some screen shots evaluating the example page without the clear:left
Browser test

If you hover over the image a somewhat larger one appears.
Test expanded

The url for this browser rendering test is browsershots.org/

Valid XHTML 1.0 Strict