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.
I tried the code below and it won't work.
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');background-position:center;background-attachment:fixed;background-repeat:no-repeat;">
<h2> <div style="text-align:center;">Hi There.</div></h2>
</body>
</html>
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.
I tried the code below and it won't work.
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');background-position:center;background-attachment:fixed;background-repeat:no-repeat;">
<h2> <div style="text-align:center;">Hi There.</div></h2>
</body>
</html>
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.