image align

J

Jeff Thies

Seems like I always ask the simplest questions.

Very common, an image with text that flows around it on the right.

Several ways to do this:

1) image embeded at the beginning of a paragraph with the deprecated
align="left"

<p><img src="brainmaster2.jpg" width="200" align="left" alt="">copy here
copy here copy here copy here copy here copy here copy here copy here
copy here copy here copy here copy
</p>

2) image just before a paragraph, align="left"

<img src="brainmaster2.jpg" width="200" align="left" alt="">
<p>copy here copy here copy here copy here copy here copy here copy here
copy here copy here copy here copy here copy herecopy here copy herecopy
here copy herecopy here copy
</p>

3) image just before a paragraph

<img src="brainmaster2.jpg" width="200" style="float:left" alt="" >
<p>copy here copy here copy here copy here copy here copy here copy here
copy here copy here copy here copy here copy herecopy here copy herecopy
here copy herecopy here copy
</p>

Will those always render the same way? Caveats?

What is the suggested non deprecated way to do: align= top bottom middle
left right ?

I have a lot of html that looks like #1 that I'm thinking of moving to
#3 and replacing align left|right with float: left|right or no float.
Stop me if there's a reason not to do that.

Jeff
 
N

Neal

Seems like I always ask the simplest questions.

Very common, an image with text that flows around it on the right.

<snip>

3) image just before a paragraph

<img src="brainmaster2.jpg" width="200" style="float:left" alt="" >
<p>copy here copy here copy here copy here copy here copy here copy here
copy here copy here copy here copy here copy herecopy here copy herecopy
here copy herecopy here copy
</p>

That's basically it.
 
S

Sid Ismail

: Very common, an image with text that flows around it on the right.
:
: Several ways to do this:
:
: 1) image embeded at the beginning of a paragraph with the deprecated
: align="left"
:
: <p><img src="brainmaster2.jpg" width="200" align="left" alt="">copy here
: copy here copy here copy here copy here copy here copy here copy here
: copy here copy here copy here copy
: </p>


To could also add hspace and vspace to create some whitespace around the
img, else the text will be too close to the image.

Sid
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top