Jump to content

[SOLVED] Word wrap effect?


spires

Recommended Posts

Hi Guys

 

I'm having a little problem aligning an image to the right

and getting the text to wrap around it.

 

It work when the image is on the left but not the right.

Can any one point me in the right direction.

 

Code that works

div.satnavLeft {
    color: #006;
float: left;
width: 110;

}
div.satnavRight {
    color: #600;
}

 

 

Code that does not work.

div.Left {
    color: #006;

}
div.Right {
    color: #600;
float: right;
width: 210;
}

 

 

As you can see here:

http://www.spirestest.com/test.html

The top DIV works, but the bottom DIV forces the bottom image

below the text, not to the right.

 

 

Any ideas please.

 

Thanks

:)

 

Link to comment
Share on other sites

It's because of the location of the float:right div in your source code (below all the text that you want to wrap around the image). You haven't made the same mistake with the float:left div. Move the .Right div to a position in the source code that is just before the text that you want to wrap around that div.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.