Chette Soriano
home . about . contact me
Chette Soriano *
chette home
Removing horizontal space in mosimage | Print |  E-mail
Written by Chette Soriano   
Wednesday, 01 November 2006

When using the mambot {mosimage}, Joomla automatically puts a horizontal space (hspace) around your image. This can destroy a website layout, especially one that is specifically sized up to the last pixel.

An alternative, of course, is to just use the <img> tags in inserting images. However, this has a weakness: The paths are not dynamic. This means that if you need to move your Joomla installation to a different folder, you will need to find all instances of your tags, & replace them with your new path. This means that the mosimage mambot a distinct advantage.

To change mosimage’s hspace value to zero:

  1. Open /mambots/content/mosimage.php
  2. In approximately line 175, change

    hspace="6"

    to

    hspace="0"

Alternatively, you can simply just remove the hspace value all together.

Line 175 will thus look like this:

$image .=' alt="'. $attrib[2] .'" title="'. $attrib[2] .'" border="'. $border .'" />';

Trackback(0)
Comments (0)add comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy
 
< Prev   Next >
* *
Main Menu
chette's articles
photo gallery
photos on the go
.........................
bookmarks
search
about
faq
contact me
Subscribe
About Me
chette

Name: Chette Soriano
Location: Pasig City, Philippines
Quote: The Internet: Where men are men, women are men, and children are FBI agents.

www.flickr.com
This is a Flickr badge showing photos in a set called photos on the go. Make your own badge here.
Latest Articles
*

© Copyright 1997 - 2007 Chette Soriano. All rights reserved. Contact me.

* *