[One Column] Image position relative to screen size (1 post)

  1. Greeneco
    Posted 2 years ago #


    I have a problem with make my image to appear always on the same spot. If I change the resolution it is at a different spot.
    I have one image on top of my header image but the second image does change position as I change my resolution.
    My code looks like this:

    <?php if ( get_header_image() ) {?>
         <div style="position: relative; left: 0%; top: 0;">
      		<a href="A_LINK">
      			<img src="<?php echo get_header_image() ; ?>" style="position: relative; top: 0; left: 0;"/>
             <div style="height:25%; width:22%; position: absolute; top: 60%; left: 60%;" >
                    <a href="ANOTHER_LINk">
      			<img src="IMAGE" />
    <?php } ?>

    How can I make the second image to appear always on the same spot relative to the screen size and/or reolution.

    I am looking forward to hear from you. :-)

    King regards,

Topic Closed

This topic has been closed to new replies.

About this Topic