function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Varun Konda 4Varun Konda 4 

vfpage pageblock image not rendering dynamically? Any idea how to?

The Opportunities Logo is to the left of PageBlock titleHere the Opportunities Logo keeps shifting up/down depending on the viewing window size. If I view from my laptop its fine, but when I view the page from monitor or ipad, the logo isnt placed properly. Below is current code-Any idea how to dynamically allign it?

<apex:form id="form">
        <apex:pageBlock title="*** Opportunities" id="pgblock" tabStyle="Opportunity">
            <img src="{!$Resource.OppLogo}" style="margin-top: -3.5%; margin-left: -0.5%;"/>
          

Amol Rokade 26Amol Rokade 26
Can you used media queries?
Please check below URL.

http://bobbuzzard.blogspot.com/2014/11/responsive-images-in-visualforce.html