TinyMCE 2.0.4 Hspace and Vspace not honoured

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
basicus

TinyMCE 2.0.4 Hspace and Vspace not honoured

Post 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?
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Post by Dr.CSS »

Try...

#main img {margin:13px}
Zoorlat

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Post 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!
basicus

Re: TinyMCE 2.0.4 Hspace and Vspace not honoured

Post 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?
Locked

Return to “CMSMS Core”