|
Posted by dorayme on 11/14/05 02:55
> From: "Petros" <peter.arnold@ntlworld.com>
>
> Hi, I have used Frontpage 2003 to create a web site, one of the pages in the
> site is a list of hyperlinks and a single frame. The hyperlinks call an
> image to be displayed in the frame (using Target Frame).
>
> The question is, how do I get the image centered in the frame. I have
> rescaled all the images such that they all scaled to whichever side of the
> image equals the max side of the frame. The problem is that try as I might
> every image is displayed left aligned in the frame.
What about this: <div
style="margin-left:auto;margin-right:auto;width:600px"><img
src="lurvelyPicture.jpg" alt="a picture of great
lurverliness"></div>
Instead of the inline style, you could have a class in the css
stylesheet or in css style in the head of the doc and refer to
it in the html <div class="picsCentred">, then you won't have to
repeat the style for each image... you make div.picsCentred have
the characteristics mentioned above, thus:
div.picsCentred {margin-left:auto;margin-right:auto;"
The width not being known should not matter to most browsers.
You can add width="choose the width of the largest of your
pictures here and leave it at that"
You can also try adding text-align: center instead. (I mention
this
to see what folks say about it.... It is a cunning ploy to see
if Barbara D_Z can be drawn out into the open)
--
dorayme
[Back to original message]
|