W3C home > Mailing lists > Public > www-style@w3.org > January 2001

Positioning and images?

From: Maury Markowitz <maury@sympatico.ca>
Date: Fri, 5 Jan 2001 13:11:57 -0800
Message-ID: <01b101c0775c$235a7040$6501a8c0@maury>
To: <www-style@w3.org>
  I've been experimenting with CSS for some time now. At first I was going
to "cut over" my site to using a HTML4/CSS version (instead of tables), but
I've found that practically no one can read it for a huge variety of

  The problem I've discovered this time has to do with images. My pages
consist of two basic portions, a header area at the top, and a body area
below it. Both are DIV's. In the header portion I place the name of the
article (game title) and typically an image from the game.

  When I do this with tables, the upper potion (a cell) contains both the
title and the image. As a result the body appears below the header as
expected. Here is an example using the tables:


  When I do what seems to be the same thing using the DIVs as "cells", the
image runs out of the header area and over the body text - making it
unreadable. Here's an example:


  Why does this happen? Since the image is a part of the upper DIV, why
don't the contents of the lower DIV (which starts with the HR and word
"history") get pushed down?

  Note that I'm not convinced this particular issue is a "bad" one, the
article is still readable in this case. I'd still like to know why it
happens though.

Received on Friday, 5 January 2001 13:00:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:56 UTC