Topic on Project:Support desk

Caption Text and Image Do Not Align Properly

5
24.84.25.236 (talkcontribs)

Hi folks,

I'm using mediawiki version 1.20 and am having problems with caption text alignment. The text alignment does not stay aligned on the bottom of the page and the image also lines up on the right side, which I don't want. To see what I mean, see this image: <wikieditor-toolbar-tool-file-pre>http://i89.photobucket.com/albums/k207/moneyfingers/caption.jpg]]

I did lots of research about this online (google searching this problem etc.) and tried the tips that they suggested online, including the following: I first tried to edit the stylesheet on my MediaWiki:Common.css page. I am editting this as a sysop and I changed:

.infobox caption {

   font-size: 125%;
   font-weight: bold;
   font-style: italic;
   position: absolute; 
   bottom: 0; 
   left: 0;
   word-wrap: break-word;

} and I also tried to change the image alignment to center and also tried other changes to the.infobox stylesheet code

When I refresh my wiki with the updated Common.css page above, the change didn't show up. The caption text does not stay aligned at the bottom.

BTW, I am using Monobook style on my site (users will only have the choice of seeing my wiki in monobook) so I also tried to edit the monobook stylesheet on my local server at http://localhost/wiki/index.php/MediaWiki:Monobook.css but again the changes didn't work and the text still does not stay aligned at the bottom.

Lastly I tried to edit the Template on my server http://localhost/wiki/index.php?title=Template:Infobox&action=edit but this is super complicated and I didn't want to break anything. It also didn't make any difference for me.

I've run my wiki on MW versions 1.19 and 1.20 and I still have this problem. Is this a software bug? I really hope someone can fix this! Or, maybe somebody out there knows of a fix??

Thanks for your help.


(Peter in Canada)

Ciencia Al Poder (talkcontribs)

The problem is that the image is inserted using the thumb syntax, which makes the image to have that border and to be right aligned by default.

You should drop the |thumb| parameter of the image, and any |right| parameter that may exist there too. You can use |center|, though.

See Help:Images

Peter321 (talkcontribs)

Hi,

I looked at your link Help:Images but am still unclear. Do I just edit a thumb tag like such as [ [ File:filename.extension | options | caption ] ] ??

Also can I edit all thumb tags across my wiki site just by editing a css page such as MediaWiki:Common.css, Common.css, or Main.css? There are so many mediawiki css pages that seem to control image options. ¡Gracias por su ayuda!

Peter

Lieutenant S. Reznov (talkcontribs)
Ciencia Al Poder (talkcontribs)

Yes, you can edit the image display editing the [[File:filename.extension | options | caption ]] code, changing the documented options as needed.

Reply to "Caption Text and Image Do Not Align Properly"