Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2005, 11:26 PM
Registered User
Join Date: Mar 2005
Location: , , .
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.
  #2 (permalink)  
Old March 28th, 2005, 11:53 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Camby, IN, USA.
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:53 PM.

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