The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Why won't my text wrap around the image?
Websales
post May 5 2015, 11:27 AM
Post #1





Group: Members
Posts: 2
Joined: 5-May 15
Member No.: 22,560



Cannot figure out why the text won't wrap around the image. I have tried both Float Left as well as Align Left with no luck.

My Webpage

Any help would be appreciated!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 5 2015, 02:06 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



Because you have given the text (.innertext) a left margin that extends the width of the image. I would ditch the width: 37% too, it will look odd when it wraps. You could use margin or padding to limit the width of the text block if you don't want it to run from side to side. You could use width too, but it needs to be wider than 37% not to look odd.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post May 5 2015, 03:06 PM
Post #3


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I'd put the image inside the .innertext div, give that div the same width and margin as .whitetailprices, but keep the float of the image.

Resize the image to the size in which it is displayed (322 x 194px, though in reality it's bigger than that) and give it a margin/padding (particularly right and bottom) so there will be some space for the text.

Then you can get rid of the .innerpic div altogether.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Websales
post May 5 2015, 05:00 PM
Post #4





Group: Members
Posts: 2
Joined: 5-May 15
Member No.: 22,560



THANKS SO MUCH! biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post May 6 2015, 03:20 AM
Post #5


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



You're welcome.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 04:06 PM