Custom classes applied to [object] tag

Author Message

Massimo Sanna

Tuesday 10 January 2006 6:26:25 am

Hi there,
I tried to create a custom class for the online editor, which was supposed to add a gray border around embedded images in my article.
So I added to my css

.image-with-border {
    border: 1px;
    border-color: #ccc;
}

Then I added in my content.ini.php

[object]
AvailableClasses[]=image-with-border

After doing this I see the newly created class in the dropdown list, but if I choose it, the resulting html will be

<div class="object-right image-with-border">

I admit I never seen two classes declared in that way before, and it appears not to work, because the browser does not apply any of the settings specified in the second class.
Could someone help me?

Thank you,
Max

Esteban Rodriguez

Wednesday 11 January 2006 5:15:57 am

Hi Max,

The code you posted should work, you can certainly assign multiple classes to a given element, check this link:
http://css-discuss.incutio.com/?page=MultipleClasses

I would check to see if some other style declaration is overriding your .image-with-border style.

Hope it helps,

Esteban

I have great faith in fools; self-confidence my friends call it.

http://presencia.net

Børge Warvik

Friday 26 May 2006 5:39:04 am

Something strange happend when I tried to do this. In the admin content.ini.appen.php file I added:

[object]
AvailableClasses=imgRight

Then in the dialogbox for adding objects under the dropdownbox for class the word "imgRight" has been split up into 8 options! Giving me this when I click on the list:

i
m
g
R
i
g
h
t

What am I doing wrong?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.