Skip to Content
avatar image
-1
Former Member

Change size of the image in ObjectListItem

Hello,

how can I change the size of the image in the ObjectListItem.

I tried it with css style, but I failed.

Thanks Klaus

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Feb 22 at 05:05 AM

    Hi Klaus,

    Identify the exact class and use the below CSS properties

    .respectiveclassname { max-height: 4rem; max-width: 4rem; }

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Anudeep,

      thank you it works.

      .sapMObjLIconDiv>.sapMImg {
          max-height: 4rem;
          max-width: 4rem;
      }
  • Feb 19 at 08:37 AM

    Hi Klaus ..

    Two things to change the size of the icon :

    1. You need to change the font-size style property of the icon.

    2. As the icon font-size is an inline style of the icon so when you change the font-size of the icon through classes you need to put your font-size as the ! important

    thanks

    Viplove

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Viplove,

      I try following statement in the css file.

      But nothing happen.

      .sapMImg {
          font-size: 200px !important;
      }
  • Feb 19 at 05:55 PM

    Hello

    You can try with below mentioned CSS

    1. width: 100%;
    2. height: 100%;
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      thank you for the hint, but it does not work.

      When I try the following statement, the image goes down, but the size is still 48x48px.

      .sapMObjLIconDiv {
          font-size: 100px !important;
      }


      image.jpg (29.0 kB)