473,407 Members | 2,676 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,407 software developers and data experts.

How to start text below an image?

Hi everybody,

This is probably a very simple question, but after a long time of trying
I'm afraid I still have not found a solution.

Have a look at the following page:
http://users.pandora.be/esreverian/test/image.html - it contains an image,
and has three <p>'s of text next to it.

How can I force paragraph three to start below the image? A break does not
work.

I can add paragraphs until it reaches below the image, but:
1) that feels like cheating
2) is flawed when the text changes
3) is probably not only the dumb way, but harder then the real way :)

Could anybody please tell me how to do this?

Thanks in advance!

Ikke
Sep 18 '06 #1
3 17764
Ikke wrote:
This is probably a very simple question, but after a long time of
trying I'm afraid I still have not found a solution.

Have a look at the following page:
http://users.pandora.be/esreverian/test/image.html - it contains an
image, and has three <p>'s of text next to it.

How can I force paragraph three to start below the image? A break
does not work.
CSS:
..imgleft {
background-color: transparent;
color: #708090;
font-size: 90%;
padding: 1em;
text-align: center;
}

HTML:
<p <!-- image inside first paragraph -->
<span class="imgleft">
<img src="../images/yourimage.jpg" alt="..." title="..." width="100"
height="100">
<br>Caption if desired
</span>
1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
</p>
<p>
2. Etiam luctus suscipit ipsum. Nam tellus eros, consectetuer a,
vulputate quis, condimentum nec, augue. ...
</p>
<p style="clear:both;>
3. Nullam nonummy arcu in nisi. Integer vitae turpis. Nam ...
but why would you want to disrupt the flow and force this one below the
image? Personally, I would leave out the 'clear:both;'
</p>

Though if you really want those leading numbers, why don't you use a
list?

--
-bts
-Motorcycles defy gravity; cars just suck.
Sep 18 '06 #2
"Beauregard T. Shagnasty" <a.*********@example.invalidwrote in
news:2h*********************@bgtnsc04-news.ops.worldnet.att.net:

<snipped>

Thank you very much - it works like a charm!
Though if you really want those leading numbers, why don't you use a
list?
Those numbers were there just for the sake of identifying the paragraphs,
the contents of the div would just be text. It would be a lot better to use
a list, if the numbers would be left in.

Thanks again,

Ikke
Sep 18 '06 #3
Ikke wrote:
"Beauregard T. Shagnasty" <a.*********@example.invalidwrote:
><snipped>

Thank you very much - it works like a charm!
In my haste to cut'n'paste, I missed some lines:

..imgleft {
float: left;
}
..imgright {
float: right;
}

Sorry about that. <g I use this method all the time in my sites.
>Though if you really want those leading numbers, why don't you use a
list?

Those numbers were there just for the sake of identifying the
paragraphs, the contents of the div would just be text. It would be a
lot better to use a list, if the numbers would be left in.
Oh, ok. :-)

--
-bts
-Motorcycles defy gravity; cars just suck.
Sep 19 '06 #4

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

Similar topics

1
by: Peter | last post by:
Hello, Thanks for reviewing my question. My SQL table has a few string columns and a image column. After inserting a new row into the dataset with the columns populated, I tried calling the...
0
by: mahsa | last post by:
hi, do you have any idea how can I show some text on image button that show in datalist?
0
by: Rob | last post by:
I am keeping the text and images for web pages in a database but cannot seem to get both the text and image on the web page at the same time. I have tried using the Response.BinaryWrite and...
1
by: larzeb2000 | last post by:
I am a beginner having difficulty placing text which is hot below an image, with the text centered horizontally with the image. I have tried background-image and can get the text above the image,...
4
by: Yocheved | last post by:
Hellow, I want draw a text on screen and can rotate it by any degree. In addition, I need that this text will have not background. And I need also save edit properties for the text. For examlple: One...
6
by: aliasDyego | last post by:
Hi all, I am trying to display both text and image fields from MySQL in PHP page but unfortunately it doesn't work. Here is the code i used: $id = $_GET; $sql = "SELECT * FROM user,...
1
by: wildman | last post by:
What property do I need to set so that I see the < and for next and prior page in my gridview. AllowPaging is true and I do see the page numbers and can select them but not the prior and next...
0
by: dreams | last post by:
hi :) i am trying to replace a text with image in the gridview.. the data source for my gridview is a sql table, i want to replace specific row from it with image depending on its original...
0
by: Sirus86 | last post by:
problem with text and image.Text is overlaying or moving to below image. i design is very complex and i need to include a scroll within the design. this is what i have so far div id="content" ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.