text

B

Bacchus

I am trying to add text to the right of my image starting at the top. It
keeps starting me off at the bottom of the image. I want it to start at the
top and work down next to the image. Anyone know how I do this?

Sorry for all the rookie questions. These are the little setbacks I am
having.

thanks
 
T

Trevor L.

Bacchus said:
I am trying to add text to the right of my image starting at the top.
It keeps starting me off at the bottom of the image. I want it to
start at the top and work down next to the image. Anyone know how I
do this?

Sorry for all the rookie questions. These are the little setbacks I
am having.

thanks

Yes, I understand. I had the same problem when I first tried to get text to
align with images

One way to do it is to use tables with vertical alignment of the cells set
to top and put the text in an adjacent column to the image.
Here is an example adapted from my site. I have shown 3 lines of text.

Just replace "images/trevor-and-carole.gif" with your image and you will see
how it aligns

<html>
<head>
<style type="text/css">
td {vertical-align:top}
</style>
</head>
<body>
<table>
<tr>
<td>
<img src="images/trevor-and-carole.gif"
alt="" title="About Us" width="60" height="40" /></a>
</td>
<td>
About Us<br>
All you wanted to know<br>
but were afraid to ask
</td>
</tr>
<table>
</body>
</html>

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------
 
R

Ronx

Float the image to the left. This can be done using image properties or
with CSS.
Example (using inline CSS - an external or embedded style sheet will be
better):
<p><img src="blah.jpg" width="200" height="150" alt="this is a picture"
style="border:none; float:left; margin:0 5px 5px 0;" />Start the text
here......</p>

The image will be placed in the left of the paragraph, and text will
wrap around it, with a 5px margin separating the text from the image.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top