Centering Images (was Re: Lynx Browser)
Peter C. Gorman
pcgorman at facstaff.wisc.edu
Thu Oct 5 10:41:22 EDT 1995
> Will this work for images as well? For example:
>
> <img src align="center">
As other have pointed out, there's no substitute for going right to the
specs to answer questions like these. I'd like to point out an additional
source for doing quick checks on questions like the one above:
http://www.halsoft.com/sgml/html-3.0/ALL-ELEM.html
It's a list of all HTML 3.0 (by definition, including 2.0) elements. Click
on one, and you get a (hypertext) list of all the elements it can legally
contain, which elements can contain it, and a link to the allowable
attributes for that element. There isn't any explanation for the semantics
of the elements or attributes, but it's a really fast way of checking your
syntax.
However, the actual question was 'will this work...?' That's pretty much
unanswerable. You can probably find some browser that will support just
about anything, whether it's in the specs or not. For centering images,
though, it's legal to have something like the following:
<p align=center>
<img src=foo.gif>
</p>
Netscape will center it, and it has the advantage of being HTML (if that
counts for anything any more) as well!
PG
_______________________________
Peter C. Gorman
Automation Help Desk
Memorial Library
University of Wisconsin
pcgorman at facstaff.wisc.edu
More information about the Web4lib
mailing list