Assuming you mean "text-align:center" that will only work without the "float:left" and without the float there will be a gap introduced between each image. I have given up on a CSS only layout and stuck them into a table.
-----Original Message----- From: Paul Ihrig [mailto:[EMAIL PROTECTED] Sent: 11 May 2007 16:32 To: CF-Community Subject: Re: Centring stuff with CSS why even use a div for the 3 images? cant you just use a align:center on them? On 5/11/07, James Smith <[EMAIL PROTECTED]> wrote: > Won't work, a width of 20% would vary with screen res. If I set {width:96px; margin:0 auto;} It would work but only on that page. Different pages have different numbers of thumbnails so I need a method that doesn't rely on setting a fixed width. > > -----Original Message----- > From: Sandra Clark [mailto:[EMAIL PROTECTED] > Sent: 09 May 2007 17:19 > To: CF-Community > Subject: RE: Centring stuff with CSS > > Center the div by setting a width and then a margin of half. > > div#thumbs{width: 20%; margin-left: 40%;} > > > Sandra Clark > ============= > http://www.shayna.com > Training and Consulting in CSS and Accessibility > Team Fusebox > > > -----Original Message----- > From: James Smith [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 09, 2007 12:04 PM > To: CF-Community > Subject: Centring stuff with CSS > > If you look at http://dev.jaysphotography.org.uk/index.cfm/page/images/ you > will see thumbnails at the top of the page. No matter how hard I try I > can't get these to the centre of the page and I have tried all of the normal > tricks. > > What am I doing wrong! > > I have currently removed all of the centring code I tried since none of it > worked anyway. > > I am clearly a no-hoper when it comes to CSS! > > -- > Jay > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:234605 Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
