473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Stop text wrapping around image

I have the following code in a webpage:

<p><img src="images/clydesdale.gif" width="100" height="41" style="float:
left;" />
<strong>Test</strong><br />
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et
justo duo dolores et ea rebum. <br />
visit website
</p>

The way I understand things, the text should sit to the right of the image
no matter how much longer than the image it is. The text however is wrapping
around the image which is not what I want.

How can I get the text to not wrap around the image, like when the image and
text are in different table cells.

Thanks

SuzyB
Jul 20 '05 #1
2 13904
"Suzanne Boyle" <Su**************@NOSPAMyahoo.co.uk> writes:
I have the following code in a webpage:

<p><img src="images/clydesdale.gif" width="100" height="41" style="float:
left;" />

The way I understand things, the text should sit to the right of the
image no matter how much longer than the image it is. The text
however is wrapping around the image which is not what I want.

How can I get the text to not wrap around the image, like when the image and
text are in different table cells.


Put a left margin on the paragraph, and put the image outside the
paragraph.

And put an appropriate alt attribute on the image:
http://ppewww.ph.gla.ac.uk/~flavell/alt/alt-text.html

--
Chris
Jul 20 '05 #2
Ivo
"Suzanne Boyle" wrote
I have the following code in a webpage:

<p><img src="images/clydesdale.gif" width="100" height="41" style="float:
left;" />
<strong>Test</strong><br />
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et
justo duo dolores et ea rebum. <br />
visit website
</p>

The way I understand things, the text should sit to the right of the image
no matter how much longer than the image it is. The text however is
wrapping around the image which is not what I want.

How can I get the text to not wrap around the image, like when the image
and text are in different table cells.


Eh, how about putting them in different table cells?
Or in different paragraphs, where the second has a leftmargin as wide as the
image:

<p style="float:left;">
<img src="images/clydesdale.gif" width="100" height="41" alt="" />
</p>
<p style="margin-left:100px">
<strong>Test</strong><br/>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. <br />
visit website
</p>

HTH
Ivo
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Aaron | last post by:
I'm using relative positioning to move a right-floated image 10px upwards.. Text wrapping around the image should go underneath it once it reaches the bottom of the image, yet it acts as if the...
1
by: Buddy | last post by:
Hello, Does anyone know how to stop labels from wrapping text. If the text is to long for the label then I want it to hide the text just like out the TextBox control works. Thanks,
0
by: PeteZ | last post by:
Inside HTML <TD> cells, I used to place <image src= . . . > statements with the align="right" or "left" option then place the text inside the same TD area. This would then allow browsers to auto...
9
by: edski | last post by:
Using a technique I found here: http://www.vertexwerks.com/tests/sidebox/ I created these "dialogue" boxes: http://www.ebph.org/test.htm In IE6, the text does not wrap correctly around the...
3
by: Coby Herd | last post by:
I cannot find any information on how to insert an image into a block of text and have the text wrap around the image. All if the text and graphics in the client's site are being pulled from the...
3
by: Coby Herd | last post by:
I 've built a site for a client using .asp and eveything is working fine except I cannot figure out how to wrap text around an image. Everything is pulled from the database using response.write....
1
by: sydtom | last post by:
I would like to stop text flowing underneath the thumbnail image on this page (GIF) View screenshot http://www.onepagereview.com/blog/wp-content/themes/Restaurant%20Review/images/working2.gif ...
1
by: Star258 | last post by:
I have a few paragraphs on my site and an ul that I’ve set up with a css background image. I wanted the image separate from the main background and still have the ability to type on it. Is there a...
1
by: DevInCode | last post by:
I'm trying to get text to wrap around a round image. Wrapping around a square image is no problem. The image I am using is obviously square, but its transparent in such away that it looks round (ie...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.