PC Review


Reply
Thread Tools Rate Thread

How to centre an image on the page?

 
 
=?Utf-8?B?RG91ZyBTdGV3YXJ0?=
Guest
Posts: n/a
 
      2nd Nov 2005
How do a centre an image (photo, GIF, whatever)? With text I just use the
centre function but can't do this for an image. I tried creating a table with
3 columns and pasting the image into the middle column. Didn't work. The
image always ends up on the left side of the page (or if it is in a column,
on the left side of the column).

Can anyone tell me how to horizontally centre an image?

Thank you for your consideration,
Doug
 
Reply With Quote
 
 
 
 
p c
Guest
Posts: n/a
 
      2nd Nov 2005
There a few ways for doing that. The simplest way is to apply center to
the element that contains the image.

If you put it in a table, select the table cell's properties (in FP
normal view) and apple horizontal alignment to center and vertical
aligment to top or middle.

If you put it betweein division tags, add align="center" in the opening
tag like this (in HTML view):

<div align="center">
stuff
</div>

...PC



Doug Stewart wrote:
> How do a centre an image (photo, GIF, whatever)? With text I just use the
> centre function but can't do this for an image. I tried creating a table with
> 3 columns and pasting the image into the middle column. Didn't work. The
> image always ends up on the left side of the page (or if it is in a column,
> on the left side of the column).
>
> Can anyone tell me how to horizontally centre an image?
>
> Thank you for your consideration,
> Doug

 
Reply With Quote
 
David Berry
Guest
Posts: n/a
 
      2nd Nov 2005
If you use tables then you'd center the image in the cell but you also need
to center the table and cells on the page as well as to set the table to a
specific number pixels to better control it.

--
David Berry - MCP
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
-----------------------------------
To assist you in getting the best answers for FrontPage support see:
http://www.frontpagemvps.com/FrontPa...3/Default.aspx
-----------------------------------

"Doug Stewart" <(E-Mail Removed)> wrote in message
news:60E3742B-907A-48EC-A7E2-(E-Mail Removed)...
> How do a centre an image (photo, GIF, whatever)? With text I just use the
> centre function but can't do this for an image. I tried creating a table
> with
> 3 columns and pasting the image into the middle column. Didn't work. The
> image always ends up on the left side of the page (or if it is in a
> column,
> on the left side of the column).
>
> Can anyone tell me how to horizontally centre an image?
>
> Thank you for your consideration,
> Doug



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      2nd Nov 2005
Do you want anything on either side of it? If not, try putting it in a div
(Panel) and centering the div. Example:

<div align="center><img
src="http://www.takempis.com/images/chutney_flag.gif"></div>

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Doug Stewart" <(E-Mail Removed)> wrote in message
news:60E3742B-907A-48EC-A7E2-(E-Mail Removed)...
> How do a centre an image (photo, GIF, whatever)? With text I just use the
> centre function but can't do this for an image. I tried creating a table
> with
> 3 columns and pasting the image into the middle column. Didn't work. The
> image always ends up on the left side of the page (or if it is in a
> column,
> on the left side of the column).
>
> Can anyone tell me how to horizontally centre an image?
>
> Thank you for your consideration,
> Doug



 
Reply With Quote
 
=?Utf-8?B?RG91ZyBTdGV3YXJ0?=
Guest
Posts: n/a
 
      3rd Nov 2005
Thank you. Did that and it works great.

Best regards,
Doug
=========================
"p c" wrote:

> There a few ways for doing that. The simplest way is to apply center to
> the element that contains the image.
>
> If you put it in a table, select the table cell's properties (in FP
> normal view) and apple horizontal alignment to center and vertical
> aligment to top or middle.
>
> If you put it betweein division tags, add align="center" in the opening
> tag like this (in HTML view):
>
> <div align="center">
> stuff
> </div>
>
> ...PC
>
>
>
> Doug Stewart wrote:
> > How do a centre an image (photo, GIF, whatever)? With text I just use the
> > centre function but can't do this for an image. I tried creating a table with
> > 3 columns and pasting the image into the middle column. Didn't work. The
> > image always ends up on the left side of the page (or if it is in a column,
> > on the left side of the column).
> >
> > Can anyone tell me how to horizontally centre an image?
> >
> > Thank you for your consideration,
> > Doug

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inverted and Mirror Image Video on DVDs Burned using Media Centre. =?Utf-8?B?TW9sZXI=?= Windows Vista General Discussion 4 14th Jul 2007 05:54 AM
how do you centre an image =?Utf-8?B?S1dPVENI?= Microsoft Word New Users 1 15th Apr 2007 02:39 PM
print copies are not in centre of page,. it goes to the right of page ronald isaacs Windows XP Print / Fax 0 24th Sep 2004 06:18 PM
Image browser like JASC Media Centre? Thump Freeware 2 21st Aug 2004 08:03 PM
Re: Can't centre my page Stefan B Rusynko Microsoft Frontpage 0 19th Aug 2003 12:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 PM.