p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 (http://p2p.wrox.com/forumdisplay.php?f=154)
-   -   "Text-wrapping" (http://p2p.wrox.com/showthread.php?t=27401)

bcat March 28th, 2005 11:26 PM

This question deals with Chapter 11 around page 316. When you read a newspaper, sometimes you will see a picture with words that are "wrapped around it". Figure 11-8 shows something close to what I mean.

Figure 11-17 is also a good example of what I am trying to express. Is there any way to move the floated object into the middle of a paragraph? If it may be of any help, this is for an newspaper that will be posted on the internet. This newspaper will be set up in columns and hopefully pictures being ale to float around those columns.

I hope I have explained what I meant clearly.

richard.york March 28th, 2005 11:53 PM

I'm not sure I understand your question.

You mean vertically-center the floated element? I haven't yet thought of a way of doing that that still keeps the object in the flow of the document. In other words, not without absolutely positioning the element, which would take it out of the flow of the document and hence cease to be floated. Anyway, that is impossible AFAIK.

At present floated elements can only be floated to the left or right. If you just want text to wrap around an image or block then if that is the case, you merely apply the float property to the image or block and the text that follows the image or block will wrap around it.

If you mean you want the text to wrap around both sides of the element, that is another impossible feat, given CSS's current capabilities. That's not to say that CSS3 won't have something like that (and then of course a browser would have to implement it), but currently it isn't possible.


Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design

All times are GMT -4. The time now is 01:26 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.