www.webdeveloper.com
Results 1 to 2 of 2

Thread: centering images

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    47

    centering images

    Hello

    Is there a better way to center a block of images in the page? At the moment I would put them in a table.

    http://gordonengraving.co.uk/Signs.html

    Many thanks

    William
    Last edited by chesswill; 03-09-2013 at 03:53 AM. Reason: home page given in url instead of intended page

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,213
    For all images:

    Code:
    img {
    display: block;
    width: XXpx; height: YYpx;
    margin: 0 auto;
    }
    Try that along with any other variations you may need for your particular situation.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles