Tags:
create new tag
, view all tags

Question

I have attached an image here and added the parameter align='right' to the <img ... command. Though this worked in Cairo, it does not seem to be working in 4.1.2 (that is, the image is always left aligned). The exact command I used is

<img src="%ATTACHURLPATH%/Birthday_gift.gif" alt="Birthday_gift.gif" width='240' height='200' align='right' />

  • To test the right alignment of the image:

Birthday_gift.gif

What could be the problem ? Why is the align command not working in 4.1.2 ?

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: WindowsXP
Web server: Apache 1.3.39
Perl version: 5.008008 (cygwin)
Client OS: Windows XP
Web Browser: IE 6
Categories: Missing functionality

-- ChengappaCB - 05 Jan 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Seems that the image is aligned correctly in Firefox, but aligned wrong (left) in IE.

No idea if what is causing this, I'm afraid (could be a browser issue, an issue with the img tag, or a css override issue ..).

-- SteffenPoulsen - 05 Jan 2008

According to http://www.w3.org/TR/html401/present/graphics.html#floating the align attribute for the img tag is deprecated.

The page has a few deprecated examples and an example of how to achieve the alignment through styles instead.

The answer on why it works in one TWiki version and not in another is probably to be found in the PatternSkin stylesheets.

-- SteffenPoulsen - 06 Jan 2008

 
Change status to:
Topic attachments
I Attachment Action Size Date Who Comment
GIFgif Birthday_gift.gif manage 39.0 K 2008-01-05 - 17:06 ChengappaCB To test the right alignment of the image
Topic revision: r3 - 2008-01-06 - SteffenPoulsen
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.