|
Posted by dorayme on 11/14/05 04:10
> From: dorayme <dorayme@optusnet.com.au>
>> 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;"
>
There should be a } at the end of this instead of the ".
ie,
div.picsCentred {margin-left:auto;margin-right:auto;}
Sorry. Sloppy cut and paste.
--
dorayme
Navigation:
[Reply to this message]
|