question about textflow

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi to all
I would like to get the text exactly as wide as the image.

any hints for me?

By the way whats wrong with the doctype line?
The wc3 valiadtor reports a missing doctype?

Regards Knut

Re: question about textflow

Quoted text here. Click to load it

You can set its container to the same width that the image happens to

Or use

#unipizza {
    display: table; width: 1px;

This will make the container's width as close to 1px as it can get
without overflowing. Since your image is wider than the longest
unbreakable character sequence, it'll get the width of the image.

If you then want those margins doing some centering (you had left and
right both set to 15em), add "margin: 0 auto" to the #unipizza selector
as well.

Re: question about textflow

Ben C schrieb:
Quoted text here. Click to load it
Thank you very much works fine


Site Timeline