Wrox Programmer Forums
BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design by Richard York; ISBN: 9780764576423
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 28th, 2005, 11:26 PM
Registered User
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default "Text-wrapping"

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.
Old March 28th, 2005, 11:53 PM
richard.york's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text wrapping abhilasha_dubey JSP Basics 1 October 26th, 2007 12:03 AM
text wrapping and controls clinging to left of pag cathiec Visual Studio 2005 0 August 10th, 2005 11:19 AM
Text Wrapping within a Table spraveens HTML Code Clinic 1 March 15th, 2004 05:47 AM

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