[thelist] RE: auto-sized boxes, and a CSS rant -- SOLVED

Jonathan_A_McPherson at rl.gov Jonathan_A_McPherson at rl.gov
Tue Jun 25 15:56:00 CDT 2002

Brilliant, Chris!

Yes, there is, and after consulting with a bright co-worker, I was able to
use it to get what I wanted.

The final code, working well:

<div style="text-align: center;">
  <span style="width: 0%; white-space: nowrap;">
    <div style="text-align: left;">
      do this<br />
      do that<br />
      do otherstuff<br />

I still am not completely happy with this:
(a) It seems like flagrant abuse of the width property.
(b) Isn't there some rule about not nesting block-level elements? That's a
div-within-a-span-within-a-div I've got there.

But it works. (-: (I'm open to more clever solutions if anyone's got any...)

Jonathan McPherson, LMIT/SD&I
Software Engineer & Web Systems Analyst
email / jonathan_a_mcpherson at rl dot gov

-----Original Message-----
From: Chris W. Parker [mailto:cparker at swatgear.com]
Sent: Tuesday, June 25, 2002 1:39 PM
To: thelist at lists.evolt.org
Subject: RE: [thelist] RE: auto-sized boxes, and a CSS rant

is there any sort of equivalent to the attribute 'nowrap' in CSS?

> -----Original Message-----
> From: Jonathan_A_McPherson at rl.gov [mailto:Jonathan_A_McPherson at rl.gov]
> Sent: Tuesday, June 25, 2002 1:16 PM
> +------------page-----------+
> |      +-------------+      |
> |      |do this      |      |
> |      |do that      |      |
> |      |do otherstuff|      |
> |      +-------------+      |
> +---------------------------+
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list