Web site logical path: [www.psy.gla.ac.uk] [~steve] demos: [html] [this page] [videos] [play mp4] [CSS posAbs] [ imagemaps]
(There is also a note on embedded video players at the end.)
ALIGN="LEFT"
With ALIGN="LEFT", the object starts at the first new line
after it occurs in the text here.
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word.
Terminating the scope of the flow-round
The above keeps the text flowing round the image as the screen resizes. The
only disadvantage is if the screen is wide, the para short, and the next para
too is part of the flow. This isn't what you want if the picture belongs only
to one paragraph. The solution is to end the para with
< P style="clear: both;">. Compare the next 2.
First paragraph.
Second paragraph.
word word word word word word word word word word word word word word word
First paragraph.
Second paragraph.
word word word word word word word word word word word word word word word
ALIGN="RIGHT"
With ALIGN="RIGHT", the object starts at the first new line
after it occurs in the text here.
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word word word word word word word word word word word word word
word word word.
ALIGN="MIDDLE"
With ALIGN="MIDDLE", it is for (small) pics meant to be embedded like a
char in the middle of just one line. The object starts immediately, no matter
where in the line, after it occurs (word word word word word word word ) in
the text here.
word word word word word word word word word word word word word word word
word word word. Or here.
word word word word word word word word word word word word word word word
ALIGN=""
With no ALIGN, the IMG is put in a line with text, soon after the point it is
put, but the line's text is aligned with the bottom of the IMG. right corner.
word word word word word word word word word word word word word word word
here,
word word word word word word word word word word word word word word word
<DIV ALIGN="CENTER">
With <DIV ALIGN="CENTER">, the picture is centered (left to right) on the
page/window.
The object starts immediately, no matter where in the line, after it occurs (word word word word word word word ) in the text word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word. Or here.
To get a figure caption, use a fixed-width table to tie text to caption, with
align-left property to get flow. The table width is the IMG width plus
extra. The VALIGN in the img is necessary to get legend/caption underneath the
IMG. (Without it, you get an interesting bug with text overprinting.)
The actual table has border=1 for illustration here, but you probably wouldn't
want that in practice.
< TABLE ALIGN="LEFT" WIDTH=90>< TR>< TD>
top caption text
< IMG SRC="pics/SteveD2.jpg" ALT="Passport photo" VALIGN="TOP"
BORDER=5 width=60 height=75>
Caption text
It occurs in the text here.
top caption text Caption text |
Alternatively, to get a paragraph (as caption) tied to a picture or table, again use a binding table. No need for ALIGN for flow (binding table does that). VALIGN in TD controls vertical alignment between pic and caption. Cellpadding gets space between img and text. Table width only needed to prevent indents (e.g. within a bulleted list) overflowing window width. All this applies equally to getting a small table parallel with text. End of binding table is like end of paragraph, keeping other text from joining the flow round the table/picture.
< TABLE cellpadding=9 WIDTH=90%>< TR>< TD valign="center">
< IMG SRC="pics/SteveD2.jpg" ALT="Passport photo" BORDER=5 width=60 height=75>
or < TABLE (no width)> ..... < /TABLE>
< /TD>< TD>
text
< /TD>< /TR>< /TABLE>< P>
word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word word. |
Issues to master:
<video width="320" height="240" controls onclick="play();"
style=" border: 3px solid green; display:block; margin: 0 auto;"
>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Here you can paste in an MP4 video URL, and play it.