MS-Word2000 Webpage. (frames question).
Hello,
I'm writing a nice internet-page in microsoft word 2000 and if you believe it or not, it works.
I have only one small problem with the frames.
I have a few frames on the site and in one of them a photo must be loaded when i click on a link.
So, by clicking on link X, Frame-3 must load Photo.jpg.
This works fine, but i want the picture to be centered in this frame (frame-3) and the frame must have a grey background.
So, everything works fine, but when i load the photo.jpg in the frame, then the background turns white end the photo is not centered ????
How can i do this (in ms-word) ???
Re: MS-Word2000 Webpage. (frames question).
Please read the replies in your other topic for an alternative to MS Word.
Create a new web page and use this for the HTML:
Code:
<html>
<head>
<title>Centered Image</title>
<style type = "text/css">
.myImage{height:400px; width:100%; text-align:center; background: url("myimagename.jpg") no-repeat grey center;}
</style>
</head>
<body bgcolor = "grey">
<div class = "myImage"></div>
<center><img src = "myimagename.jpg"></center>
</body>
</html>
Use either the <div></div> or the older <img> surrounded by the <center> tag. Set the height in the <style> tag to the height of your image or slightly larger to reveal the background color of grey. You don't have to use both a <div> and <img> tag. I only used both to illustrate options. Just use one method or the other.