• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Image Sizing in Info Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Image Sizing in Info Widget

    I have included an image in an info widget. I have the height and width set in an <img> tag. When the widget is rendered, the image flashes up the size I want and then is almost immediately reduced to 24x24. Is there something special I need to do to get the image to render as I have defined?

  • #2
    I cannot replicate this...can you post your markup for the info widget?

    Comment


    • #3
      Can you provide the current HTML markup that includes the image tag

      Comment


      • #4
        Here's what I have in the HTML plus a link to a video of what I see

        image.png​
        ​https://drive.google.com/file/d/1zYS...usp=drive_link

        Comment


        • #5
          Are you just attempting to vertically and horizontally center an image? This may work better:

          Code:
          <div style="display:flex;justify-content:center;align-items:center;">
            <img src="myImage.png"/>
          </div>
          The x-panel-body-ultraslim class is likely adding some properties that you do not want.

          Comment


          • #6
            I'm also trying to make the background transparent for the widget

            Comment


            • #7
              Your suggestion made no difference. The image still shrinks

              Comment


              • #8
                Please send the exact image to support and we will take a look. Also, is the info widget in a section or popup?

                Comment

                Working...
                X