[pmwiki-users] improved markup for floating images...?
H. Fox
haganfox at gmail.com
Tue Jul 26 18:57:29 CDT 2005
On 7/26/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>
> In PmWiki: Attach:Wiki.png"jigsaw globe"
This creates a tooltip in IE but not in Gecko-based browsers. For
cross-browser consistency you could add a title= attribute to the
<img> tag that contains the same text as the alt= attribute.
This may not be desirable if browsers treat an empty title attribute
(title='') in some strange way. In Firefox it appears to be harmless.
People seem to like tooltips. It would be an improvement to display
them in Firefox as well as MSIE.
> > Notice also (rather interestingly) that they tend to float an image by
> > default and you have to use a style="clear:both" to prevent it (which is
> > actually easier I think than having a bunch of different ways to float it
> > or not, just make the break explicit?)
>
> Which side does the image float to by default?
To the right.
> PmWiki 1 used to do something similar to this -- an image appearing at the
> start of a markup line would automatically float left, and an image
> at the end of a markup line would automatically float right. I ended
> up removing this for PmWiki 2 because it was greatly complicating
> wikistyle handling and because it was occurring too "invisibly" for
> many authors to detect, so the explicit markup seemed better. But floating
> by default in absence of other information might also be useful.
It certainly would!
I liked the PmWiki 1 behavior. It was my main reason for holding back
an upgrade to PmWiki 2 for so long.
I think having an image float to the right by default would be a
welcomed improvement. Most wikiauthors would probably be happy to see
text wrap around their (non-inline) images.
Maybe have the default-to-the-right behavior only happen when the
image is on its own line, like:
Attach:image.jpg
Some text.
being equivalent to
%imright%Attach:image.jpg
Some text.
Is that confusing? Even if slightly so, I think the current behavior
of having text not wrap around images is more confusing, or maybe
"confounding" is a better word. :-)
Hagan
More information about the pmwiki-users
mailing list