Page 1 of 1

TinyMCE 2.0.4 Hspace and Vspace not honoured

Posted: Tue Nov 14, 2006 11:46 am
by basicus
It seems to me that the Hspace and Vspace in images inserted into content does not get honoured in the frontend. Everything seems to work fine when I edit the article, but in the frontend the text comes way to close to the image. Have a look at the source code of http://www.polandpoint.com/destinations ... in-gdansk/

The source for the image just before the text "The Hall of the Main City" is

Code: Select all

<img src="uploads/images/Pomerania/Main_Town_Hall_Ratusz-Gdansk.jpg" alt=" " align="left" border="0" height="266" hspace="13" vspace="13" width="200" />
, so in theory the there should be 13 pixels space around the picture.

Any ideas what might be the problem?

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Posted: Wed Nov 15, 2006 9:57 am
by Russ
Mmm, I don;t think I would want to use Hspace and Vspace as they have been deprecated in the latest XHTMl. I think perhaps you should look to using a CSS class with extra padding on the image or the text? Or somehting like that.

Russ

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Posted: Wed Nov 15, 2006 11:26 am
by Dr.CSS
Try...

#main img {margin:13px}

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Posted: Wed Nov 15, 2006 12:49 pm
by Zoorlat
The vspace and hspace on your image seems to work fine in IE. And also when you turn off CSS in Firefox. So it seems to be a problem of styles...

I would recommend following Marks suggestion. Create a class in your stylesheet (for example "img.left") and assign margins, floats etc to that class. Then all you'll need to do is put the class in your img-tag :

Code: Select all

<img src="yourpicture.jpg" class="left">
Hope it works well!

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Posted: Mon Nov 20, 2006 11:52 am
by basicus
Well.. I guess I could try that. But what I find odd about this behaviour, is that it actually works as expected in the administration. When I look at the article there, everything looks fine. How odd is that?