spires Posted August 24, 2007 Share Posted August 24, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/66506-solved-word-wrap-effect/ Share on other sites More sharing options...
bronzemonkey Posted August 24, 2007 Share Posted August 24, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/66506-solved-word-wrap-effect/#findComment-333043 Share on other sites More sharing options...
spires Posted August 24, 2007 Author Share Posted August 24, 2007 Your a star. It works great. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/66506-solved-word-wrap-effect/#findComment-333050 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.