Results 1 to 2 of 2

Thread: MS-Word2000 Webpage. (frames question).

  1. #1

    Thread Starter
    Junior Member Adriaan's Avatar
    Join Date
    May 2001
    Location
    Netherlands
    Posts
    23

    Talking 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) ???

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602

    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.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width