|
Posted by Bone Ur on 11/01/07 23:40
Well bust mah britches and call me cheeky, on Thu, 01 Nov 2007 23:01:54 GMT
MangroveRoot scribed:
> I've looked for tutorials on how to do this for some years,
> with no success.
>
> Most of the time, I'm a good boy and only use <TABLE> (etc)
> to format tabular data.
>
> However, there remains one thing that <TABLE> does excellently
> that I have yet to find a way to do using solely CSS:
>
> Put a block of text *in a box*,
> which box sizes itself to the size of the *content*,
> not to some arbitrary fixed width or some percentage of the window.
> Surely CSS can do this; how?
When I want to center a bordered-box with text, I usually size a div in ems
with relation to the text and use margin:auto (-and text-align:center if
necessary). Yes, I realized this isn't the same as having it accommodate
_completely random_ textual snippets, but most of the time that isn't the
case, anyway.
--
Bone Ur
Cavemen have formidable pheromones.
[Back to original message]
|