W3C home > Mailing lists > Public > www-html@w3.org > February 2008

<DIV> flowing like <IMG>

From: Gerald \ <roguebfl@gmail.com>
Date: Mon, 11 Feb 2008 08:05:39 -0500
Message-ID: <5ab8ccff0802110505q5004b5a9rd28b4da8e5005b4b@mail.gmail.com>
To: "www-html@w3.org" <www-html@w3.org>

<div class="gallery">
   <p style="background-color">Title</p>
   <img />
</div>

I want div.gallery to flow across the page like a <IMG> tag normally
does, but want to keep the title aligned with it. I tried
display:inline, but but the merely broke the <DIV> width element and
had the <P> background-color go 100%.

I don't want to go with table mainly because I don't want a fixed
number of columns, (and secondly I'm trying to avoid using table for
layout)

-- 
Gerald Grenier, Jr
aka Rogue the Bronze Firelizard
uninstall dyslexia.o : Permission deigned
Received on Monday, 11 February 2008 13:05:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:13 GMT