Jump to content

How can i give TuniImage a CSS-Class


erich.wanker
 Share

Recommended Posts

Hello ..

 

i tryed to give a Image a CSS-Class...

 

MyUniImage.ClientEvents.ExtEvents.Add('beforerender=function beforerender(sender, eOpts){ sender.addClass("icon_normal");}');

and CSS:

 

.icon_normal {
   border:3px solid #006400; 
}


.icon_norma:hover {
   border:5px solid #006400;
}

but doesn.t work

 

 

 

Has someone a Idea?

 

ThanX

Erich

Link to comment
Share on other sites

Hi Erich,

 

It should work.

 

What problem do you have ?!

 

And:

 

1.

 

Hello ..

 

i tryed to give a Image a CSS-Class...

 

MyUniImage.ClientEvents.ExtEvents.Add('beforerender=function beforerender(sender, eOpts){ sender.addClass("icon_normal");}');

 

Where do you use this code ?!

 

 

 

2.

 

 

.icon_norma:hover {
   border:5px solid #006400;
}

 

.icon_norma:hover - incorrect

 

.icon_normal:hover - correct     

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...