Jump to content

TUniToolButton with icon aligned to the top (iconalign=iaTop)


Roberto Nicchi

Recommended Posts

The button is connected to a TuniNativeImageList (svg image)

If i use the following CSS the icon is not centered horizzontally. It's aligned to the left.

.okIcon24 {
  height: 24px !important;
  width: 24px !important;  
  background-size: 24px auto;
  background-image: url("files/icone/okIcon.svg"); 
}
 

If the line

width: 24px !important;  

is changed to

width: 24px;

the icon is centered (correctly) horizzontally.

I'm wondering why the "!important" option in CSS is causing the icon not to be centered horizzontally.

thanks

 

Roberto

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.

×
×
  • Create New...