?
Solved

Text on left side of an image

Posted on 2005-03-11
4
Medium Priority
?
169 Views
Last Modified: 2012-05-05
I want to place text on the left side of an image.  This is what I have now:

<div style="width=50%; float:left;">
<p> some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text </p>
</div>
<div style="float:right;">
   <img border="0" src="http://mountainbrookradio.com/images/thom.jpg" width="200" height="275">
</div>

Currently, the text goes all the way across the screen, and the image shows up underneath it.
0
Comment
Question by:lwinkenb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 32

Expert Comment

by:Batalf
ID: 13520831
width=50%

should be

width:50%
0
 
LVL 32

Expert Comment

by:Batalf
ID: 13520841
Try

<div style="width:400px;float:left;">
<img border="0" src="http://mountainbrookradio.com/images/thom.jpg" width="200" height="275" align="right">
<p> some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text </p>
</div>
0
 
LVL 5

Author Comment

by:lwinkenb
ID: 13520989
That will work, but it wraps the text around the image.  I want the text to stay to the left of the image, even when it's gone below the image.
0
 
LVL 32

Accepted Solution

by:
Batalf earned 1000 total points
ID: 13521034
Try this:

<div style="width:300px;float:left;">
<img border="0" src="http://mountainbrookradio.com/images/thom.jpg" width="200" height="275" style="float:right">  
<p style="float:left"> some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text some very long text </p>
</div>
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question