• Resolved Sjaakbonestaak

    (@sjaakbonestaak)


    I’m working on this website and i added an image to my index.php, but i can’t figure out why it won’t align correctly (bottom right)

    <?php
    	echo '
    		<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    			<html>
    				<div class="meetlogo">
    					<p>In samenwerking met:</p>
    					<img src="/wp-content/themes/furies-child/images/meet.png"  alt="In samenwerking met Meet" />
    				</div>
    			</html>
    ';
    ?>
    .meetlogo{
    	 float:right;
    	 position:absolute;
    	 bottom:0
    }

    Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • don’t add the ‘doctype’ etc stuff, you are alteady wintin a html section …

    just use:

    <div class="meetlogo">
    					<p>In samenwerking met:</p>
    					<img src="/wp-content/themes/furies-child/images/meet.png"  alt="In samenwerking met Meet" />
    				</div>

    change the CSS to:

    .meetlogo{
    	position:absolute;
    	 bottom:0;
    	right: 0;
    	 width:auto;
    }
    Thread Starter Sjaakbonestaak

    (@sjaakbonestaak)

    That did the trick, thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Image won't align correctly’ is closed to new replies.