Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

Text on left side of an image

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
lwinkenb
Asked:
lwinkenb
  • 3
1 Solution
 
BatalfCommented:
width=50%

should be

width:50%
0
 
BatalfCommented:
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
 
lwinkenbAuthor Commented:
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
 
BatalfCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now