Aligning a picture to the top right of a html web page?

amyleaw

New member
im creating a web page and I can not get the images to be on the right side of the page. the only way I can sort of do it is by aligning it with words and I don't want that. I want a picture in the top right corner of my web page. can someone give me the code for this.

* 3 hours ago
* - 4 days left to answer.


Here is the first code I tried
<div id="top-image"><img src="family.jpg" alt=" width="x" height="y" /></div>

below is part of the body of my webpage. when I use the above code nothing happens.

<html>
<head>
<title>Amy's Web Page</title></head>

<img src="born-1.jpg" alt="Tacoma, WA" Style="width: 240;height: 160;px;" />

<div id="top-image"><img src="family.jpg" alt="" width="x" height="y" /></div>

<body style="background-image:url('ocean.jpg')…
<h2> <div style="text-align:center;">Hi There.</div></h2>
</body>
</html>

2 minutes ago
Here is the second code I tried

<img src="your-family.jpg" class="rt" alt="" width="x" height="y" />

I even tried it changing the width and height to what size I wanted.

1 second ago
 
Back
Top